]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-iotests: redirect nbd server stdout to /dev/null
authorJeff Cody <jcody@redhat.com>
Tue, 14 Feb 2017 18:15:07 +0000 (13:15 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Feb 2017 15:09:22 +0000 (16:09 +0100)
Some iotests (e.g. 174) try to filter the output of _make_test_image by
piping the stdout.  Pipe the server stdout to /dev/null, so that filter
pipe does not need to wait until process completion.

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

index 6c0fd4cc61b8e3df4407db516f18d2305202b35d..08065dceae638d5878c52dbf858fc8b94735b44d 100644 (file)
@@ -172,7 +172,7 @@ _make_test_img()
 
     # Start an NBD server on the image file, which is what we'll be talking to
     if [ $IMGPROTO = "nbd" ]; then
-        eval "$QEMU_NBD -v -t -b 127.0.0.1 -p 10810 -f $IMGFMT  $TEST_IMG_FILE &"
+        eval "$QEMU_NBD -v -t -b 127.0.0.1 -p 10810 -f $IMGFMT  $TEST_IMG_FILE >/dev/null &"
         sleep 1 # FIXME: qemu-nbd needs to be listening before we continue
     fi
 }