Patchwork [v2,6/6] qemu-iotests: fix missing 'result' variable assignment in 030

login
register
mail settings
Submitter Stefan Hajnoczi
Date April 24, 2012, 1:54 p.m.
Message ID <1335275640-3349-7-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/154685/
State New
Headers show

Comments

Stefan Hajnoczi - April 24, 2012, 1:54 p.m.
We test this value after block-job-cancel but forget to actually assign
it.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 tests/qemu-iotests/030 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
index fdd7b3e..88a9b58 100755
--- a/tests/qemu-iotests/030
+++ b/tests/qemu-iotests/030
@@ -97,7 +97,7 @@  class TestStreamStop(ImageStreamingTestCase):
         events = self.vm.get_qmp_events(wait=False)
         self.assertEqual(events, [], 'unexpected QMP event: %s' % events)
 
-        self.vm.qmp('block-job-cancel', device='drive0')
+        result = self.vm.qmp('block-job-cancel', device='drive0')
         self.assert_qmp(result, 'return', {})
 
         cancelled = False