Commit dbf231d7 authored by Vladimir Sementsov-Ogievskiy's avatar Vladimir Sementsov-Ogievskiy Committed by Kevin Wolf
Browse files

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: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent bbe16574
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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')