]> xenbits.xensource.com Git - xtf.git/commit
runner: Use virt caps to identify whether a test can run
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Jan 2024 11:59:14 +0000 (11:59 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Jan 2024 11:59:14 +0000 (11:59 +0000)
commit837f771d9612215d5e6c9a1a41bf3b3ab0d0b381
tree4d5c1a51033a0f071ba42588efac7ae867a63d6b
parent04ebde85213dda873fb2336e3607daa8a55e856b
runner: Use virt caps to identify whether a test can run

Right now, --host filters a test selection using xen_caps to exclude full
environments.  Furthermore, without passing --host, xtf-runner will try to
start a test even when we know it can't be constructed, leaving an xl error to
the user and reporting CRASH.

The virt capabilities are more fine grained, and include other information
such as the availability of hap and shadow paging.

Split run_test() out of run_tests() and use the test's required caps to short
circuit to SKIP.

Rework the existing --host filtering in terms of virt caps, which simplifies
the invocation of tests_from_selection().

This causes ~hap and ~shadow variation tests to SKIP rather than CRASH when
run on hardware without HAP (or with HAP disabled in firmware), or with Shadow
compiled out.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xtf-runner