aboutsummaryrefslogtreecommitdiff
path: root/test/py/test_request_errors.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_request_errors.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_request_errors.py')
-rw-r--r--test/py/test_request_errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/test_request_errors.py b/test/py/test_request_errors.py
index 6cd50cb..2615352 100644
--- a/test/py/test_request_errors.py
+++ b/test/py/test_request_errors.py
@@ -206,7 +206,7 @@ def test_reply_fail_quiesce_busy(mock_get_pending_bytes, mock_quiesce,
read_region(ctx, sock, VFU_PCI_DEV_MIGR_REGION_IDX,
vfio_user_migration_info.pending_bytes.offset,
vfio_user_migration_info.pending_bytes.size, rsp=False,
- expect_run_ctx_errno=errno.EBUSY)
+ busy=True)
# vfu_run_ctx will try to reset the context and to do that it needs to
# quiesce the device first