Skip to content

Commit

Permalink
Merge pull request #185 from xcp-ng/stormi/fix-xtf
Browse files Browse the repository at this point in the history
tests/xen: add test-pv64-xsa-444 to list of common skips for XTF
  • Loading branch information
stormi authored Jan 9, 2024
2 parents e313ff2 + 27e63c4 commit bbeb7cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/xen/test_xtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@
@pytest.mark.usefixtures("host_with_hvm_fep", "host_with_dynamically_disabled_ept_sp")
class TestXtf:
_common_skips = [
# UMIP requires hardware support, that is a recent enough CPU
'test-hvm32-umip',
'test-hvm64-umip',
# PV Superpages, a thing which was removed long ago from the hypervisor. Always skips
'test-pv64-xsa-167',
'test-pv64-xsa-182'
# Depends on pv linear pagetables, which is disabled by default but can be activated on Xen's cmdline.
# Is not needed for Linux. It is for a NetBSD PV guest.
'test-pv64-xsa-182',
# Will skip if DBEXT support is not present
'test-pv64-xsa-444',
]

def _extract_skipped_tests(self, output):
Expand Down Expand Up @@ -42,6 +48,7 @@ def test_all(self, host, xtf_runner):
"Checking whether they belong to the allowed list...")
for skipped_test in skipped_tests:
if skipped_test not in self._common_skips:
logging.error(f"... At least one doesn't")
raise
logging.info("... They do")
else:
Expand Down

0 comments on commit bbeb7cb

Please sign in to comment.