mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: fix "utility required warning" with empty utility name
In generic/019, if we hadn't install fio, we will get following output: generic/019 [not run] utility required, skipped this test <- * Not run: generic/019 Passed all 0 tests When fio is not installed, "$FIO_PROG" is set to blank, and _require_fio() call _require_command() with none arguments. This patch fixed all misuse of _require_command(), add 2nd argument to let _require_command() output right message, and add quotes to first argument to avoid argument shifting. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
+3
-3
@@ -57,9 +57,9 @@ _require_scratch_nocheck
|
||||
BTRFS_CONVERT_PROG="`set_prog_path btrfs-convert`"
|
||||
E2FSCK_PROG="`set_prog_path e2fsck`"
|
||||
|
||||
_require_command $BTRFS_CONVERT_PROG btrfs-convert
|
||||
_require_command $MKFS_EXT4_PROG mkfs.ext4
|
||||
_require_command $E2FSCK_PROG e2fsck
|
||||
_require_command "$BTRFS_CONVERT_PROG" btrfs-convert
|
||||
_require_command "$MKFS_EXT4_PROG" mkfs.ext4
|
||||
_require_command "$E2FSCK_PROG" e2fsck
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
|
||||
Reference in New Issue
Block a user