aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2017-02-14 13:15:07 -0500
committerKevin Wolf <kwolf@redhat.com>2017-02-24 16:09:22 +0100
commit43421ea05f8dfe85dcbb2d4932730fe8cb74dbf4 (patch)
tree146d488556f93e5e618eaa2d6a6b042bc5ecbccb /tests
parentdfac03dcd4e88ad218e3c0800720eb60a9aa9bae (diff)
downloadqemu-43421ea05f8dfe85dcbb2d4932730fe8cb74dbf4.zip
qemu-43421ea05f8dfe85dcbb2d4932730fe8cb74dbf4.tar.gz
qemu-43421ea05f8dfe85dcbb2d4932730fe8cb74dbf4.tar.bz2
qemu-iotests: redirect nbd server stdout to /dev/null
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/qemu-iotests/common.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index 6c0fd4c..08065dc 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -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
}