diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:47:55 +0000 |
commit | 2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4 (patch) | |
tree | 033cc839730fda84ff08db877037977be94e5e3a /vendor/tar/debian/patches/test-skip-loop0-if-nonexistent.diff | |
parent | Initial commit. (diff) | |
download | cargo-upstream.tar.xz cargo-upstream.zip |
Adding upstream version 0.70.1+ds1.upstream/0.70.1+ds1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/tar/debian/patches/test-skip-loop0-if-nonexistent.diff')
-rw-r--r-- | vendor/tar/debian/patches/test-skip-loop0-if-nonexistent.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/tar/debian/patches/test-skip-loop0-if-nonexistent.diff b/vendor/tar/debian/patches/test-skip-loop0-if-nonexistent.diff new file mode 100644 index 0000000..1f4eec4 --- /dev/null +++ b/vendor/tar/debian/patches/test-skip-loop0-if-nonexistent.diff @@ -0,0 +1,17 @@ +Description: Skip using loop0 if it doesn't exist (apparently it doesn't on Debian CI) +Author: Peter Michael Green <plugwash@debian.org> + +--- a/tests/all.rs ++++ b/tests/all.rs +@@ -1394,7 +1394,10 @@ + // unfortunately, block device file cannot be created by non-root users + // as a substitute, just test the file that exists on most Unix systems + t!(env::set_current_dir("/dev/")); +- t!(ar.append_path("loop0")); ++ // debian CI apprently doesn't have loop0, skip testing it if it doesn't exist. ++ if std::path::Path::new("loop0").exists() { ++ t!(ar.append_path("loop0")); ++ } + // CI systems seem to have issues with creating a chr device + t!(ar.append_path("null")); + t!(ar.finish()); |