aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/common.filter
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-01-26 21:02:58 -0500
committerKevin Wolf <kwolf@redhat.com>2015-02-06 17:24:22 +0100
commita231cb272611c758d45135f6a35a4dd1beaf5585 (patch)
tree3c63b1a04adff75968681f7aa2f3eba05e8f0aea /tests/qemu-iotests/common.filter
parent23ab6953f4675b8663888ce6cfe40f4191be3e48 (diff)
iotests: Fix 104 for NBD
_make_test_img sets up an NBD server, _cleanup_test_img shuts it down; thus, _cleanup_test_img has to be called before _make_test_img is invoked another time. Furthermore, the pipe through _filter_test_img was unnecessary; _make_test_img already takes care of that. And finally, a filter is added to _filter_img_info to replace "nbd://127.0.0.1:10810" by "TEST_DIR/t.IMGFMT", since the former is the way to express the full image path (normally the latter) for NBD tests. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common.filter')
-rw-r--r--tests/qemu-iotests/common.filter1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
index b73c70be95..06e1bb045f 100644
--- a/tests/qemu-iotests/common.filter
+++ b/tests/qemu-iotests/common.filter
@@ -200,6 +200,7 @@ _filter_img_info()
sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \
-e "s#$TEST_DIR#TEST_DIR#g" \
-e "s#$IMGFMT#IMGFMT#g" \
+ -e 's#nbd://127.0.0.1:10810$#TEST_DIR/t.IMGFMT#g' \
-e "/encrypted: yes/d" \
-e "/cluster_size: [0-9]\\+/d" \
-e "/table_size: [0-9]\\+/d" \