aboutsummaryrefslogtreecommitdiff
path: root/test/py/test_device_get_irq_info.py
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2022-02-18 12:24:07 +0000
committerGitHub <noreply@github.com>2022-02-18 12:24:07 +0000
commitf968d297dd5ff00cd5593a5f0828fea5fef7670c (patch)
tree3d7cc48b4d985685fc2fe1c13bf9bd1707f64be1 /test/py/test_device_get_irq_info.py
parent403bb2aa6784d445fe18825307cc85ca79820a01 (diff)
downloadlibvfio-user-f968d297dd5ff00cd5593a5f0828fea5fef7670c.zip
libvfio-user-f968d297dd5ff00cd5593a5f0828fea5fef7670c.tar.gz
libvfio-user-f968d297dd5ff00cd5593a5f0828fea5fef7670c.tar.bz2
test/py: simplify errno handling (#645)
We explicitly identify the quiesce EBUSY case for msg(), letting us simplify the handling of expected errno. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'test/py/test_device_get_irq_info.py')
-rw-r--r--test/py/test_device_get_irq_info.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/py/test_device_get_irq_info.py b/test/py/test_device_get_irq_info.py
index fd00544..0a9b089 100644
--- a/test/py/test_device_get_irq_info.py
+++ b/test/py/test_device_get_irq_info.py
@@ -62,21 +62,21 @@ def test_device_get_irq_info_bad_in():
payload = struct.pack("II", 0, 0)
msg(ctx, sock, VFIO_USER_DEVICE_GET_IRQ_INFO, payload,
- expect_reply_errno=errno.EINVAL)
+ expect=errno.EINVAL)
# bad argsz
payload = vfio_irq_info(argsz=8, flags=0, index=VFU_DEV_REQ_IRQ,
count=0)
msg(ctx, sock, VFIO_USER_DEVICE_GET_IRQ_INFO, payload,
- expect_reply_errno=errno.EINVAL)
+ expect=errno.EINVAL)
# bad index
payload = vfio_irq_info(argsz=argsz, flags=0, index=VFU_DEV_NUM_IRQS,
count=0)
msg(ctx, sock, VFIO_USER_DEVICE_GET_IRQ_INFO, payload,
- expect_reply_errno=errno.EINVAL)
+ expect=errno.EINVAL)
def test_device_get_irq_info():