]> Git Repo - qemu.git/commitdiff
qemu-iotests/iotests.py: improve assert_qmp message
authorVladimir Sementsov-Ogievskiy <[email protected]>
Sat, 26 Oct 2019 10:12:21 +0000 (13:12 +0300)
committerKevin Wolf <[email protected]>
Mon, 18 Nov 2019 16:50:08 +0000 (17:50 +0100)
From the two values compared, make it obvious which is found at path, and
which is expected.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
tests/qemu-iotests/iotests.py

index 075f4739dae1c86bff8f90b5e4d06401005d7e58..6a248472b9e2cd94433fc3997f8735bc922efa74 100644 (file)
@@ -731,8 +731,8 @@ class QMPTestCase(unittest.TestCase):
             self.fail('no match for "%s" in %s' % (str(result), str(value)))
         else:
             self.assertEqual(result, value,
-                             'values not equal "%s" and "%s"'
-                                 % (str(result), str(value)))
+                             '"%s" is "%s", expected "%s"'
+                                 % (path, str(result), str(value)))
 
     def assert_no_active_block_jobs(self):
         result = self.vm.qmp('query-block-jobs')
This page took 0.029485 seconds and 4 git commands to generate.