diff options
author | Jeff Cody <jcody@redhat.com> | 2014-02-12 16:30:52 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-02-14 18:05:38 +0100 |
commit | e001807847ba40d29450031377b84acd10066b61 (patch) | |
tree | a43224591c75ff85db1b187e681f7b86ecf5ec08 /tests/qemu-iotests/070 | |
parent | 39a611a3e035e148257af314a522a6cd169c2d0e (diff) |
block: qemu-iotests - fix test 070 (vhdx)
VHDX test 070 failed, due to different output from qemu-io / qemu
when opening an image read-only that contains a log file. Filter
the output, and update the expected results to match the correct
output.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/070')
-rwxr-xr-x | tests/qemu-iotests/070 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/070 b/tests/qemu-iotests/070 index 41bf100701..f84d2cb4ed 100755 --- a/tests/qemu-iotests/070 +++ b/tests/qemu-iotests/070 @@ -56,7 +56,8 @@ _use_sample_img iotest-dirtylog-10G-4M.vhdx.bz2 echo echo "=== Verify open image read-only fails, due to dirty log ===" -$QEMU_IO -r -c "read -pP 0xa5 0 18M" "$TEST_IMG" 2>&1 | grep -o "Permission denied" +$QEMU_IO -r -c "read -pP 0xa5 0 18M" "$TEST_IMG" 2>&1 | _filter_testdir \ + | _filter_qemu_io echo "=== Verify open image replays log ===" $QEMU_IO -c "read -pP 0xa5 0 18M" "$TEST_IMG" | _filter_qemu_io |