[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/4] qemu-iotests/iotests.py: improve assert_qmp message
From: |
Kevin Wolf |
Subject: |
[PULL 1/4] qemu-iotests/iotests.py: improve assert_qmp message |
Date: |
Mon, 18 Nov 2019 18:02:53 +0100 |
From: Vladimir Sementsov-Ogievskiy <address@hidden>
>From the two values compared, make it obvious which is found at path, and
which is expected.
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/qemu-iotests/iotests.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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')
--
2.20.1
- [PULL 0/4] Block layer patches for 4.2.0-rc2, Kevin Wolf, 2019/11/18
- [PULL 2/4] iotests: Fix "no qualified output" error path, Kevin Wolf, 2019/11/18
- [PULL 1/4] qemu-iotests/iotests.py: improve assert_qmp message,
Kevin Wolf <=
- [PULL 3/4] block: Remove 'backing': null from bs->{explicit_, }options, Kevin Wolf, 2019/11/18
- [PULL 4/4] iotests: Test multiple blockdev-snapshot calls, Kevin Wolf, 2019/11/18
- Re: [PULL 0/4] Block layer patches for 4.2.0-rc2, Peter Maydell, 2019/11/18