1
0
mirror of https://github.com/systemd/systemd synced 2024-07-09 04:26:06 +00:00

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.
This commit is contained in:
Frantisek Sumsal 2023-12-04 10:23:42 +01:00
parent a311d4dd30
commit 6743066875
2 changed files with 5 additions and 0 deletions

View File

@ -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