qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] qemu-iotests/iotests.py: improve assert_qmp message


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] qemu-iotests/iotests.py: improve assert_qmp message
Date: Sat, 26 Oct 2019 13:29:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

On 10/26/19 12:12 PM, Vladimir Sementsov-Ogievskiy wrote:
Make it obvious, from the two values which is found at path and which
is expected.

Maybe:

"From the two values compared, make it obvious which is found at path, and which is expected."

Reviewed-by: Philippe Mathieu-Daudé <address@hidden>


Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---

It's a pain, I can never remember it, and checking each time in source
code who is who is boring.

  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 709def4d5d..e805b9ab14 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -729,8 +729,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')




reply via email to

[Prev in Thread] Current Thread [Next in Thread]