tar - Skip using loop0 in test if it doesn't exist.
Peter Michael Green
2 years ago
|
0 |
rust-tar (0.4.37-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* Package tar 0.4.37 from crates.io using debcargo 2.4.4
|
|
4 |
* Skip adding loop0 to tarball in test if it doesn't exist
|
|
5 |
(apparently it doesn't on Debian CI).
|
|
6 |
|
|
7 |
-- Peter Michael Green <plugwash@debian.org> Tue, 09 Nov 2021 21:14:51 +0000
|
|
8 |
|
0 | 9 |
rust-tar (0.4.37-2) unstable; urgency=medium
|
1 | 10 |
|
2 | 11 |
* Team upload.
|
0 | 0 |
disable-tests.diff
|
|
1 |
test-skip-loop0-if-nonexistent.diff
|
|
0 |
Description: Skip using loop0 if it doesn't exist (apparently it doesn't on Debian CI)
|
|
1 |
Author: Peter Michael Green <plugwash@debian.org>
|
|
2 |
|
|
3 |
--- rust-tar-0.4.37.orig/tests/all.rs
|
|
4 |
+++ rust-tar-0.4.37/tests/all.rs
|
|
5 |
@@ -1240,7 +1240,10 @@ fn tar_directory_containing_special_file
|
|
6 |
// unfortunately, block device file cannot be created by non-root users
|
|
7 |
// as a substitute, just test the file that exists on most Unix systems
|
|
8 |
t!(env::set_current_dir("/dev/"));
|
|
9 |
- t!(ar.append_path("loop0"));
|
|
10 |
+ // debian CI apprently doesn't have loop0, skip testing it if it doesn't exist.
|
|
11 |
+ if std::path::Path::new("loop0").exists() {
|
|
12 |
+ t!(ar.append_path("loop0"));
|
|
13 |
+ }
|
|
14 |
// CI systems seem to have issues with creating a chr device
|
|
15 |
t!(ar.append_path("null"));
|
|
16 |
t!(ar.finish());
|