common: fix "utility required warning" with empty utility name
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 18 Mar 2015 04:00:23 +0000 (15:00 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 18 Mar 2015 04:00:23 +0000 (15:00 +1100)
commit7a1ad744f26c6b01fe4c7e2eafbf86c580bebaf3
tree8c0d91649a8d23ef4824409e0f2333679b600381
parent57914b885044961fbd4f945e59005fa18febf73b
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>
12 files changed:
common/defrag
common/rc
tests/btrfs/003
tests/btrfs/004
tests/btrfs/011
tests/btrfs/012
tests/btrfs/079
tests/ext4/004
tests/xfs/094
tests/xfs/103
tests/xfs/122
tests/xfs/195