Patchwork qemu-iotests: Cleanup test image in test number 007

login
register
mail settings
Submitter Bharata B Rao
Date Sept. 12, 2013, 8:37 a.m.
Message ID <1378975079-2709-1-git-send-email-bharata@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/274465/
State New
Headers show

Comments

Bharata B Rao - Sept. 12, 2013, 8:37 a.m.
qemu-iotests number 007 doesn't do test image cleanup. This will affect
those protocols that expect a clean state before every test. Hence
ensure that test image is cleaned up in this test.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
---
 tests/qemu-iotests/007 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Kevin Wolf - Sept. 12, 2013, 11:54 a.m.
Am 12.09.2013 um 10:37 hat Bharata B Rao geschrieben:
> qemu-iotests number 007 doesn't do test image cleanup. This will affect
> those protocols that expect a clean state before every test. Hence
> ensure that test image is cleaned up in this test.
> 
> Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>

Thanks, applied to the block branch.

Kevin

Patch

diff --git a/tests/qemu-iotests/007 b/tests/qemu-iotests/007
index c454f2c..6fa7603 100755
--- a/tests/qemu-iotests/007
+++ b/tests/qemu-iotests/007
@@ -30,7 +30,7 @@  status=1	# failure is the default!
 
 _cleanup()
 {
-#	_cleanup_test_img
+	_cleanup_test_img
 	true
 }
 trap "_cleanup; exit \$status" 0 1 2 3 15