btrfs-progs: tests: fix mkfs/025 detection of zoned support

When 'nullb setup' fails to detect something, e.g. the null_blk module,
the whole test fails though the failure is supposed to be caught and
test not run. Use the correct helper that handles potential failures.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-03-22 14:34:21 +01:00
parent 403ba6e6ee
commit 183eece927
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ count=10
declare -a devices
declare -a names
run_check $SUDO_HELPER "$nullb" setup
run_mayfail $SUDO_HELPER "$nullb" setup
if [ $? != 0 ]; then
_not_run "cannot setup nullb environment for zoned devices"
fi