]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
examination: skip memdisk on non-BIOS hosts, run per-firmware on x86
authorIan Jackson <iwj@xenproject.org>
Fri, 22 Oct 2021 15:21:27 +0000 (16:21 +0100)
committerIan Jackson <iwj@xenproject.org>
Mon, 6 Dec 2021 18:17:13 +0000 (18:17 +0000)
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@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
make-flight
mfi-common
ts-memdisk-try-append

index acb19b11328718ea001e641100145e223fe39989..d7eeb4ebbd90fd4700fe1abc2f24d6b20e1c83ae 100755 (executable)
@@ -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
index 771843f05af5f9047adbac8b1fce254c106a038a..59e712f4e2952039bfece127a57ca9a33d7891fb 100644 (file)
@@ -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
 
index d5c12866ffc3225aab698dba71f807a3bfc21874..18c4aaa5c7bbe3455848745cf56ca446f3edc189 100755 (executable)
@@ -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 $!;
     ' "$@"`
 
@@ -38,6 +52,10 @@ amd64)
     echo "Arch $arch not supported for memdisk tests"
     exit 0
     ;;
+SKIP)
+    echo "Step skipped."
+    exit 0
+    ;;
 *)
     echo >&2 'Job arch retrieval failed?'
     exit 1