btrfs-progs: tests: fix 022-reiserfs-parent-ref setup

The test does not pass in environments where /bin/sh is not bash (like
github CI). Unify the initial setup like the other tests do: source,
compatibility, prerequisities, the rest.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2024-01-16 20:33:38 +01:00
parent 517ba2d9e5
commit bbf5a3f72c

View file

@ -1,18 +1,18 @@
#!/bin/sh
#!/bin/bash
# Test that only toplevel directory self-reference is created
source "$TEST_TOP/common" || exit
source "$TEST_TOP/common.convert" || exit
setup_root_helper
prepare_test_dev
if ! check_kernel_support_reiserfs >/dev/null; then
_not_run "no reiserfs support"
fi
check_global_prereq mkreiserfs
check_prereq btrfs-convert
check_global_prereq mkreiserfs
setup_root_helper
prepare_test_dev
run_check $SUDO_HELPER mkreiserfs -q -f -b 4096 "$TEST_DEV"
run_check_mount_test_dev -t reiserfs