From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <ian.jackson@eu.citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH v2 4/6] osstest: limit FreeBSD jobs to hardware booting in BIOS mode
Date: Thu, 12 Jul 2018 16:46:20 +0200 [thread overview]
Message-ID: <20180712144622.96603-5-roger.pau@citrix.com> (raw)
In-Reply-To: <20180712144622.96603-1-roger.pau@citrix.com>
There's no support yet in osstest to install FreeBSD from UEFI, so for
the time being limit the FreeBSD jobs to boxes booting with legacy
BIOS.
The hostflags are not set for examine jobs, in order to avoid them
from only running on BIOS boxes.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Note that this patch depends on Ian Jackson's resource allocation
series.
---
Changes since v1:
- Fix nonbreaking space.
- Fix long line.
---
make-flight | 3 ++-
mfi-common | 16 ++++++++++++----
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/make-flight b/make-flight
index 4e2d464f..deb2276d 100755
--- a/make-flight
+++ b/make-flight
@@ -704,7 +704,8 @@ do_examine_one () {
local freebsd_runvars
# set_freebsd_runvars expects $arch to be set to the desired FreeBSD arch.
local arch=$dom0arch
- set_freebsd_runvars
+ # Pass true to not append any hostflags when creating the FreeBSD runvars.
+ set_freebsd_runvars true
job_create_test test-$xenarch$kern-$dom0arch-examine \
host-examine-xen xl $xenarch $dom0arch \
all_hostflags=$most_hostflags $freebsd_runvars
diff --git a/mfi-common b/mfi-common
index 0e6cf01e..74645259 100644
--- a/mfi-common
+++ b/mfi-common
@@ -149,27 +149,35 @@ set_freebsd_runvars () {
#
# 4. Look for an anointed build of FreeBSD `master' (Executive only)
#
+ local no_hostflags=$1
local envvar="FREEBSD_${arch^^}_BUILDJOB"
+
+ 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.
+ freebsd_runvars="all_hostflags,=PropEq:Firmware:bios:bios"
+ fi
+
if [ -n "${!envvar}" ]; then
- freebsd_runvars="freebsdbuildjob=${!envvar}"
+ freebsd_runvars="$freebsd_runvars freebsdbuildjob=${!envvar}"
return
fi
if [ -n "$FREEBSD_DIST" ] && [ -n "$FREEBSD_VERSION" ]; then
- freebsd_runvars="freebsd_distpath=$FREEBSD_DIST/$arch \
+ freebsd_runvars="$freebsd_runvars freebsd_distpath=$FREEBSD_DIST/$arch \
freebsd_version=$FREEBSD_VERSION"
return
fi
local distpath=`getconfig "FreeBSDDist"`
if [ -n "$distpath" ]; then
local version=`getconfig "FreeBSDVersion"`
- freebsd_runvars="freebsd_distpath=$distpath/$arch \
+ freebsd_runvars="$freebsd_runvars freebsd_distpath=$distpath/$arch \
freebsd_version=$version"
return
fi
local anointment="freebsd build master $arch"
local flightjob=`./mg-anoint retrieve --tolerate-unprepared "$anointment"`
if [ -n "$flightjob" ]; then
- freebsd_runvars="freebsdbuildjob=${flightjob/ /.}"
+ freebsd_runvars="$freebsd_runvars freebsdbuildjob=${flightjob/ /.}"
return
fi
}
--
2.17.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-07-12 14:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-12 14:46 [PATCH v2 0/6] osstest: FreeBSD bugfixes and improvements Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 1/6] osstest: allow appending to existing runvars Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 2/6] osstest: remove duplicate set_freebsd_runvars Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 3/6] osstest: abstract code to create a FreeBSD build job Roger Pau Monne
2018-07-12 14:46 ` Roger Pau Monne [this message]
2018-07-17 11:12 ` [PATCH v2 4/6] osstest: limit FreeBSD jobs to hardware booting in BIOS mode Ian Jackson
2018-07-12 14:46 ` [PATCH v2 5/6] osstest: set the make command to use for xen-build Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 6/6] osstest: add FreeBSD Xen build job Roger Pau Monne
2018-07-12 14:50 ` Ian Jackson
2018-07-12 15:02 ` Roger Pau Monné
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180712144622.96603-5-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).