mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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 <vsementsov@virtuozzo.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
bbe165740a
commit
dbf231d7b4
1 changed files with 2 additions and 2 deletions
|
@ -731,8 +731,8 @@ class QMPTestCase(unittest.TestCase):
|
||||||
self.fail('no match for "%s" in %s' % (str(result), str(value)))
|
self.fail('no match for "%s" in %s' % (str(result), str(value)))
|
||||||
else:
|
else:
|
||||||
self.assertEqual(result, value,
|
self.assertEqual(result, value,
|
||||||
'values not equal "%s" and "%s"'
|
'"%s" is "%s", expected "%s"'
|
||||||
% (str(result), str(value)))
|
% (path, str(result), str(value)))
|
||||||
|
|
||||||
def assert_no_active_block_jobs(self):
|
def assert_no_active_block_jobs(self):
|
||||||
result = self.vm.qmp('query-block-jobs')
|
result = self.vm.qmp('query-block-jobs')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue