aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/common.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qemu-iotests/common.rc')
-rw-r--r--tests/qemu-iotests/common.rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index 47cef6dbe4..28ba0d9ad5 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -410,7 +410,8 @@ _default_cache_mode()
#
_require_command()
{
- [ -x "$1" ] || _notrun "$1 utility required, skipped this test"
+ eval c=\$$1
+ [ -x "$c" ] || _notrun "$1 utility required, skipped this test"
}
_full_imgfmt_details()