[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 5/5] examination: skip memdisk on non-BIOS hosts, run per-firmware on x86
This is a combination of two changes: ts-memdisk-try-append: skip memdisk test on non-BIOS hosts make-flight: examine: Insist on -bios and -uefi tests on x86 This will let us skip ts-memdisk-try-append on non-bios platforms without risking regression. It will also definitely spot regressions which will occur on any uefi host. standalone-generate-dump-flight-runvars reveals the changes are as follows: New jobs test-amd64-i386-examine-bios test-amd64-i386-examine-uefi test-amd64-amd64-examine-bios test-amd64-amd64-examine-uefi added everywhere that has the corresponding plain job, namely osstest linux-* xen-unstable These jobs are just like the plain jobs, except that one of ,PropEq:Firmware:bios:bios ,PropEq:Firmware:bios:uefi has been added to the end of all_hostflags. Signed-off-by: Ian Jackson <iwj@xxxxxxxxxxxxxx> --- make-flight | 9 +++++++++ mfi-common | 1 + ts-memdisk-try-append | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/make-flight b/make-flight index acb19b113..d7eeb4ebb 100755 --- a/make-flight +++ b/make-flight @@ -736,6 +736,15 @@ test_matrix_do_one () { do_credit12_tests do_examine_one + case "$dom0arch" in + i386|amd64) + # Test on BIOS, which makes sure we test one where FreeBSD should + # work. See ts-memdisk-try-append, and set_freebsd_runvars in + # mfi-common. + do_examine_one bios + do_examine_one uefi + ;; + esac # No further arm tests at the moment if [ $dom0arch = armhf -o $dom0arch = arm64 ]; then diff --git a/mfi-common b/mfi-common index 771843f05..59e712f4e 100644 --- a/mfi-common +++ b/mfi-common @@ -163,6 +163,7 @@ set_freebsd_runvars () { if [ x$no_hostflags != xtrue ]; then # osstest doesn't yet know how to install FreeBSD on UEFI hosts, so # limit the usable hardware to boxes that boot from BIOS. + # See also in ts-memdisk-try-append. freebsd_runvars="all_hostflags,=PropEq:Firmware:bios:bios" fi diff --git a/ts-memdisk-try-append b/ts-memdisk-try-append index d5c12866f..8fd6540b8 100755 --- a/ts-memdisk-try-append +++ b/ts-memdisk-try-append @@ -28,6 +28,20 @@ arch=`perl -I. -we ' $whhost ||= "host"; our $ho = selecthost($whhost); + if (get_target_property($ho,"firmware") ne "bios") { + # osstest does not yet know how to install FreeBSD on UEFI hosts + # See also in set_freebsd_runvars in mfi_common + + # Skipping this test on non-BIOS does not lead to pushes + # where this test is broken, because make-flght test_matrix_do_one + # arranges to run this test on BIOS too. + + broken("skipping memdisk because firmware is not bios", + "skip"); + print "SKIP\n" or die $!; + exit 0; + } + print $ho->{Arch} or die $!; ' "$@"` @@ -37,6 +51,9 @@ amd64) [a-z]*) echo "Arch $arch not supported for memdisk tests" exit 0 +SKIP) + echo "Step skipped." + exit 0 ;; *) echo >&2 'Job arch retrieval failed?' -- 2.20.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |