From 8e9e653038db97bfd343c3fb217b7bf4da765a89 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Mon, 19 Oct 2015 17:53:10 +0200 Subject: [PATCH] iotests: Only create BB if necessary Tests 071 and 081 test giving references in blockdev-add. It is not necessary to create a BlockBackend here, so omit it. While at it, fix up some blockdev-add invocations in the vicinity (s/raw/$IMGFMT/ in 081, drop the format BDS for blkverify's raw child in 071). Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- tests/qemu-iotests/071 | 54 +++++++++++++++++++++++++++++++------- tests/qemu-iotests/071.out | 12 ++++++--- tests/qemu-iotests/081 | 18 ++++++++++--- tests/qemu-iotests/081.out | 5 ++-- 4 files changed, 71 insertions(+), 18 deletions(-) diff --git a/tests/qemu-iotests/071 b/tests/qemu-iotests/071 index 9eaa49b419..92ab991456 100755 --- a/tests/qemu-iotests/071 +++ b/tests/qemu-iotests/071 @@ -104,8 +104,17 @@ echo echo "=== Testing blkdebug on existing block device ===" echo -run_qemu -drive "file=$TEST_IMG,format=raw,if=none,id=drive0" <