[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 1/2] osstest: allow to treat host install errors as failures



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@xxxxxxxxxx>
---
 make-freebsd-flight | 3 ++-
 sg-run-job          | 6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/make-freebsd-flight b/make-freebsd-flight
index 64dfe9a6..66d4b816 100755
--- a/make-freebsd-flight
+++ b/make-freebsd-flight
@@ -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
diff --git a/sg-run-job b/sg-run-job
index f366ce5e..d152051f 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -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
 }
 
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.