From: Frantisek Sumsal Date: Mon, 4 Dec 2023 09:23:42 +0000 (+0100) Subject: test: check if 'btrfs filesystem' supports 'mkswapfile' X-Git-Tag: v255~11^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6743066875685c48f3f2f494564fe7e1dee747ba;p=thirdparty%2Fsystemd.git test: check if 'btrfs filesystem' supports 'mkswapfile' Instead of deny-listing the test on Ubuntu CI, so it gets enabled automagically once btrfs-progs is updated to a newer version there. --- diff --git a/test/TEST-83-BTRFS/deny-list-ubuntu-ci b/test/TEST-83-BTRFS/deny-list-ubuntu-ci deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/test/TEST-83-BTRFS/test.sh b/test/TEST-83-BTRFS/test.sh index 5c32c517e17..72d12441136 100755 --- a/test/TEST-83-BTRFS/test.sh +++ b/test/TEST-83-BTRFS/test.sh @@ -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