]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
osstest: allow to treat host install errors as failures
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 29 Jun 2018 06:58:57 +0000 (08:58 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 2 Jul 2018 16:12:11 +0000 (17:12 +0100)
And use it for the build-amd64-freebsd-again job, which should test
the new FreeBSD build produced by build-amd64-freebsd and a host
install error should be treated as a failure in order to trigger the
bisection.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
make-freebsd-flight
sg-run-job

index 64dfe9a6e813cd5cfd835704b4794197b0241611..66d4b816348c853409003981a83a2435f428a285 100755 (executable)
@@ -89,7 +89,8 @@ for arch in "$arches"; do
                 revision_freebsd=$REVISION_FREEBSD              \
                 host_hostflags=arch-$arch,purpose-build         \
                 all_host_os=freebsd                             \
-                freebsdbuildjob=build-$arch-freebsd
+                freebsdbuildjob=build-$arch-freebsd             \
+                recipe_testinstall=true
 done
 
 echo $flight
index f366ce5e9f57773139e5220185bb8a46bb904523..d152051faa93d8cf8d6e9eb40ac142d10e2ef8e7 100755 (executable)
@@ -79,7 +79,8 @@ proc run-job {job} {
     if {$ok} { set syslog [spawn-ts broken = | ts-syslog-server]          }
 
     if {[llength $need_build_host]} {
-        catching-otherwise broken {
+        if {[recipe-flag testinstall]} { set broken fail } { set broken broken }
+        catching-otherwise $broken {
             prepare-build-host-[string tolower $need_build_host]
         }
     }
@@ -757,7 +758,8 @@ proc prepare-build-host-linux {} {
 
 proc prepare-build-host-freebsd {} {
     global jobinfo
-    run-ts broken host-install(*) ts-freebsd-host-install
+    if {[recipe-flag testinstall]} { set broken fail } { set broken broken }
+    run-ts $broken host-install(*) ts-freebsd-host-install
     run-ts . host-build-prep ts-build-prep-freebsd
 }