From: Ian Jackson Date: Thu, 17 May 2018 11:01:05 +0000 (+0100) Subject: mfi-common: Fall back to anointed builds in Executive mode X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=208e7dba345fb13cfad92a3e43fbb6a4dc87945a;p=people%2Froyger%2Fosstest.git mfi-common: Fall back to anointed builds in Executive mode Previously, `make-*-flight' would not work unless FREEBSD_*_BUILDJOB was set. Now we use the anointed values if we can find them. If we can't, mg-anoint retrieve will print a warning. Signed-off-by: Ian Jackson CC: Roger Pau Monné --- diff --git a/mfi-common b/mfi-common index 17b1b50..fddd1ce 100644 --- a/mfi-common +++ b/mfi-common @@ -130,6 +130,8 @@ set_freebsd_runvars () { # 3. Config file FreeBSDDist, FreeBSDVersion: same as 2. except that # they are set on the config file. # + # 4. Look for an anointed build of FreeBSD `master' (Executive only) + # local envvar="FREEBSD_${arch^^}_BUILDJOB" if [ -n "${!envvar}" ]; then freebsd_runvars="freebsdbuildjob=${!envvar}" @@ -147,6 +149,12 @@ set_freebsd_runvars () { 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/ /.}" + return + fi } create_build_jobs () {