File: skip-encoding-tests.patch

package info (click to toggle)
rust-ssh-key 0.6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,008 kB
  • sloc: makefile: 2
file content (70 lines) | stat: -rw-r--r-- 2,079 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Description: Skip encoding tests that require writable source directory
 These tests write temporary files to tests/scratch/ which fails in
 read-only autopkgtest environment with permission denied error.
Author: Nadzeya Hutsko <nadzya.info@gmail.com>
Forwarded: not-needed
Last-Update: 2025-11-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tests/private_key.rs
+++ b/tests/private_key.rs
@@ -410,42 +410,49 @@
 
 #[cfg(all(feature = "alloc", feature = "ecdsa"))]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn encode_ecdsa_p256_openssh() {
     encoding_test(OPENSSH_ECDSA_P256_EXAMPLE)
 }
 
 #[cfg(all(feature = "alloc", feature = "ecdsa"))]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn encode_ecdsa_p384_openssh() {
     encoding_test(OPENSSH_ECDSA_P384_EXAMPLE)
 }
 
 #[cfg(all(feature = "alloc", feature = "ecdsa"))]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn encode_ecdsa_p521_openssh() {
     encoding_test(OPENSSH_ECDSA_P521_EXAMPLE)
 }
 
 #[cfg(all(feature = "alloc"))]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn encode_ed25519_openssh() {
     encoding_test(OPENSSH_ED25519_EXAMPLE)
 }
 
 #[cfg(all(feature = "alloc"))]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn encode_rsa_3072_openssh() {
     encoding_test(OPENSSH_RSA_3072_EXAMPLE)
 }
 
 #[cfg(all(feature = "alloc"))]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn encode_rsa_4096_openssh() {
     encoding_test(OPENSSH_RSA_4096_EXAMPLE)
 }
 
 #[cfg(all(feature = "alloc"))]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn encode_custom_algorithm_openssh() {
     encoding_test(OPENSSH_OPAQUE_EXAMPLE)
 }
--- a/tests/public_key.rs
+++ b/tests/public_key.rs
@@ -443,6 +443,7 @@
 
 #[cfg(feature = "std")]
 #[test]
+#[ignore = "Requires writable tests/scratch directory"]
 fn write_openssh_file() {
     let example_key = OPENSSH_ED25519_EXAMPLE;
     let key = PublicKey::from_openssh(example_key).unwrap();