diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-12-04 17:10:56 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-12-04 15:19:00 +0100 |
commit | 9c468a013fd0b0eb6154f8c5cfd2b1d498a86113 (patch) | |
tree | f77fafd7c27e9c8743d72a31703f71380803d91a /tests/qemu-iotests/common.rc | |
parent | 8c116b0e4141400f8d43a7e6dac8ff3adcc8aadd (diff) |
qemu-iotests: add 058 internal snapshot export with qemu-nbd case
This case can't run when IMGPROTO=nbd, since it needs to create some
internal snapshot which would fail for EOF write request, even when
TEST_IMG is exported with "-f raw" in common.rc, so set _supported_proto
to file.
_require_command() is changed to tip what util is missing, instead
of printing a blank.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common.rc')
-rw-r--r-- | tests/qemu-iotests/common.rc | 3 |
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() |