]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: check if 'btrfs filesystem' supports 'mkswapfile'
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 4 Dec 2023 09:23:42 +0000 (10:23 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 4 Dec 2023 10:12:51 +0000 (11:12 +0100)
Instead of deny-listing the test on Ubuntu CI, so it gets enabled
automagically once btrfs-progs is updated to a newer version there.

test/TEST-83-BTRFS/deny-list-ubuntu-ci [deleted file]
test/TEST-83-BTRFS/test.sh

diff --git a/test/TEST-83-BTRFS/deny-list-ubuntu-ci b/test/TEST-83-BTRFS/deny-list-ubuntu-ci
deleted file mode 100644 (file)
index e69de29..0000000
index 5c32c517e171a92dd611b8f53617c0e922812f04..72d12441136910adb6d6913d0feaa4fa213b66fe 100755 (executable)
@@ -17,6 +17,11 @@ if ! command -v btrfs >/dev/null || ! command -v mkfs.btrfs >/dev/null; then
     exit 0
 fi
 
+if ! btrfs filesystem mkswapfile --help >/dev/null; then
+    echo "TEST: $TEST_DESCRIPTION [SKIPPED]: 'btrfs filesystem' doesn't support 'mkswapfile' subcommand" >&2
+    exit 0
+fi
+
 test_append_files() {
     install_btrfs
     image_install sync