[Xen-devel,OSSTEST,06/17] mfi-common: Allow caller of create_build_jobs to include/exclude xend builds

Message ID 1390384501-20552-6-git-send-email-ian.campbell@citrix.com
State New
Headers show

Commit Message

Ian Campbell Jan. 22, 2014, 9:54 a.m.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 mfi-common | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Patch

diff --git a/mfi-common b/mfi-common
index 82bc875..3342acc 100644
--- a/mfi-common
+++ b/mfi-common
@@ -83,10 +83,14 @@  create_build_jobs () {
     # In 4.4 onwards xend is off by default. If necessary we build a
     # separate set of binaries with xend enabled in order to run those
     # tests which use xend.
-    case "$arch" in
-    i386|amd64) want_xend=true;;
-    *) want_xend=false;;
-    esac
+    if [ -z "$WANT_XEND" ]; then
+      want_xend=$WANT_XEND
+    else
+      case "$arch" in
+        i386|amd64) want_xend=true;;
+        *) want_xend=false;;
+      esac
+    fi
 
     case "$xenbranch" in
     xen-3.*-testing) build_defxend=$want_xend; build_extraxend=false;;