qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v2 07/25] python/qmp: switch qemu-ga-client to AQMP


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH v2 07/25] python/qmp: switch qemu-ga-client to AQMP
Date: Thu, 16 Dec 2021 13:31:10 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

15.12.2021 22:39, John Snow wrote:
Signed-off-by: John Snow <jsnow@redhat.com>

Not simple to check, how much new behavior is equal to the old one.. And 
impossible to check, is everything updated that should be )


---
  python/qemu/qmp/qemu_ga_client.py | 22 +++++++++++-----------
  1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/python/qemu/qmp/qemu_ga_client.py 
b/python/qemu/qmp/qemu_ga_client.py
index b3e1d98c9e..15ed430c61 100644
--- a/python/qemu/qmp/qemu_ga_client.py
+++ b/python/qemu/qmp/qemu_ga_client.py

[..]

try:
          client = QemuGuestAgentClient(address)
-    except OSError as err:
+    except ConnectError as err:
          print(err)
-        if err.errno == errno.ECONNREFUSED:
-            print('Hint: qemu is not running?')
+        if isinstance(err.exc, ConnectionError):
+            print('(Is QEMU running?)')

It at least a bit changed from checking errno to checking the class, I'd note 
it in commit message. And anyway commit message may be more informative. Still, 
I just don't care too much about testing framework.

Nothing seems wrong to me, so weak:
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>

--
Best regards,
Vladimir



reply via email to

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