]> git.proxmox.com Git - qemu.git/commitdiff
qemu-iotests: Save some sed processes
authorKevin Wolf <kwolf@redhat.com>
Thu, 9 Aug 2012 11:17:14 +0000 (13:17 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 Aug 2012 08:25:12 +0000 (10:25 +0200)
Instead of building a huge pipeline, just pass all expressions to a
single sed process.

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/common.rc

index 7782808a26fad2658d991e59c00b51714cc1c1b1..6b805161c840c5bf401d4d02421fae61187c011d 100644 (file)
@@ -105,16 +105,16 @@ _make_test_img()
 
     # XXX(hch): have global image options?
     $QEMU_IMG create -f $IMGFMT $extra_img_options $TEST_IMG $image_size | \
-       sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" | \
-       sed -e "s#$TEST_DIR#TEST_DIR#g" | \
-       sed -e "s#$IMGFMT#IMGFMT#g" | \
-       sed -e "s# encryption=off##g" | \
-       sed -e "s# cluster_size=[0-9]\\+##g" | \
-       sed -e "s# table_size=[0-9]\\+##g" | \
-       sed -e "s# compat='[^']*'##g" | \
-       sed -e "s# compat6=\\(on\\|off\\)##g" | \
-       sed -e "s# static=\\(on\\|off\\)##g" | \
-       sed -e "s# lazy_refcounts=\\(on\\|off\\)##g"
+        sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \
+            -e "s#$TEST_DIR#TEST_DIR#g" \
+            -e "s#$IMGFMT#IMGFMT#g" \
+            -e "s# encryption=off##g" \
+            -e "s# cluster_size=[0-9]\\+##g" \
+            -e "s# table_size=[0-9]\\+##g" \
+            -e "s# compat='[^']*'##g" \
+            -e "s# compat6=\\(on\\|off\\)##g" \
+            -e "s# static=\\(on\\|off\\)##g" \
+            -e "s# lazy_refcounts=\\(on\\|off\\)##g"
 }
 
 _cleanup_test_img()