]> xenbits.xensource.com Git - osstest.git/commitdiff
make-flight: do_examine_one: add firmware argument
authorIan Jackson <iwj@xenproject.org>
Fri, 22 Oct 2021 15:35:39 +0000 (16:35 +0100)
committerIan Jackson <iwj@xenproject.org>
Mon, 6 Dec 2021 18:17:13 +0000 (18:17 +0000)
Nothing sets this yet.

No functional change (checked with standalone-generate-dump-flight-runvars)

Signed-off-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
make-flight

index ecbb195bc366f41c03323d6ef8f2774fee3b905e..acb19b11328718ea001e641100145e223fe39989 100755 (executable)
@@ -687,20 +687,31 @@ do_pv_debian_tests () {
 }
 
 do_examine_one () {
+  local firmware="$1"
+
   case "$branch" in
     xen-unstable)              ;; # only likely to regress on -unstable
     osstest)                   ;; # very likely to regress
     linux-*)                   ;; # often seems to regress
     *)                 return  ;; # stuff used for guests is irrelevant
   esac
+
+  local firmware_suffix
+  local firmware_hostflag
+  if [ "$firmware" ]; then
+    firmware_suffix=-$firmware
+    firmware_hostflag=,PropEq:Firmware:bios:$firmware
+  fi
+
   local freebsd_runvars
   # set_freebsd_runvars expects $arch to be set to the desired FreeBSD arch.
   local arch=$dom0arch
   # Pass true to not append any hostflags when creating the FreeBSD runvars.
   set_freebsd_runvars true
-  job_create_test test-$xenarch$kern-$dom0arch-examine \
+  job_create_test test-$xenarch$kern-$dom0arch-examine${firmware_suffix} \
                   host-examine-xen xl $xenarch $dom0arch \
-                  all_hostflags=$most_hostflags $freebsd_runvars
+                  all_hostflags=$most_hostflags$firmware_hostflag \
+                  $freebsd_runvars
 }
 
 test_matrix_do_one () {