aboutsummaryrefslogtreecommitdiff
path: root/test/py/test_request_errors.py
AgeCommit message (Collapse)AuthorFilesLines
2023-09-15respond to more of Thanos's commentsWilliam Henderson1-10/+2
Signed-off-by: William Henderson <william.henderson@nutanix.com>
2023-09-15refactor: move a number of tests from C to PythonWilliam Henderson1-0/+54
Signed-off-by: William Henderson <william.henderson@nutanix.com>
2023-09-15test: update existing testsWilliam Henderson1-53/+0
Signed-off-by: William Henderson <william.henderson@nutanix.com>
2022-10-04fix compilation for i386 and ppc64 (#709)Thanos Makatos1-3/+3
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com> Reported-by: Eduardo Lima <eblima@gmail.com>
2022-02-18test/py: simplify errno handling (#645)John Levon1-1/+1
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>
2021-11-30introduce device quiesce callback (#609)Thanos Makatos1-4/+113
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Leon <john.levon@nutanix.com>
2021-10-22run python code through flake8 (#613)John Levon1-3/+9
Aside from general style goodness, this found a couple of accidental re-definitions, so it's worth taking the pain now. Also, only run rstlint as part of pre-push. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2021-05-26improve request header handlingJohn Levon1-0/+124
We should require a non-empty payload for every command type except VFIO_USER_DEVICE_RESET. We should also reply to the caller with such failures. Add some testing for is_valid_header(), and move the fd handling test over to it too. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>