From: Vladimir Sementsov-Ogievskiy Date: Sat, 26 Oct 2019 10:12:21 +0000 (+0300) Subject: qemu-iotests/iotests.py: improve assert_qmp message X-Git-Tag: qemu-xen-4.14.0~274^2~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dbf231d7b40ebc2dfd9a7c31c46dad6011d9c308;p=qemu-xen.git qemu-iotests/iotests.py: improve assert_qmp message From the two values compared, make it obvious which is found at path, and which is expected. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Kevin Wolf --- diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 075f4739da..6a248472b9 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -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')