]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
make-flight: consolidate branch_filter_callback for builds and tests
authorIan Campbell <ian.campbell@citrix.com>
Tue, 17 Nov 2015 17:13:45 +0000 (17:13 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 30 Nov 2015 14:16:14 +0000 (14:16 +0000)
Currently we have a test_matrix_branch_filter_callback which filters
jobs based on the $xenarch and $branch and a separate more adhoc
filter inline for the build jobs.

This has lead to things getting out of sync in the past (e.g. recently
we dropped armhf tests from the linux-3.10 and -3.14 branches but not
the build jobs).

Add a new build_matrix_branch_filter_callback and for make-flight
cause this and test_matrix_branch_filter_callback to use a common
helper.

The adhoc filtering in the build loop remains and will be tidied up
next.

For make-distros-flight just add a nop build filter alongside the test
filter.

No change to the output of standalone-generate-dump-flight-runvars.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
make-distros-flight
make-flight
mfi-common

index 9e1d77e3f9fc5dd1143dac8b3b3c2638ecdd7344..9d04d3b30cc19dac5b6dacbad684bc76c777457a 100755 (executable)
@@ -55,6 +55,10 @@ job_create_test_filter_callback () {
   return 0
 }
 
+build_matrix_branch_filter_callback () {
+    :
+}
+
 test_matrix_branch_filter_callback () {
     :
 }
index 407d67e41084a43290b19378525e4cdae9c34710..42a903e180d1540b007ab88f179fe618ad902f64 100755 (executable)
@@ -133,8 +133,9 @@ job_create_test_filter_callback () {
   return 0;
 }
 
-test_matrix_branch_filter_callback () {
-  case "$xenarch" in
+arch_branch_filter_callback () {
+  local arch=$1
+  case "$arch" in
   armhf)
         case "$branch" in
         linux-3.0) return 1;;
@@ -154,7 +155,16 @@ test_matrix_branch_filter_callback () {
         esac
         ;;
   esac
+  return 0
+}
 
+build_matrix_branch_filter_callback () {
+  if ! arch_branch_filter_callback $arch ; then return 1 ; fi
+  return 0
+}
+
+test_matrix_branch_filter_callback () {
+  if ! arch_branch_filter_callback $xenarch ; then return 1 ; fi
   return 0
 }
 
index 3463430d65936a8bfdfce7493d83a0127512a698..44cd13b6e5d9d877faa91e0e89d5b628f8cc91fd 100644 (file)
@@ -89,6 +89,8 @@ create_build_jobs () {
 
     if [ "x$arch" = xdisable ]; then continue; fi
 
+    build_matrix_branch_filter_callback || continue
+
     case "$arch" in
     armhf)
       case "$branch" in