]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
make-flight: Use older Debian for host and guest OS with older Xen
authorIan Campbell <ian.campbell@citrix.com>
Mon, 18 Jan 2016 14:28:57 +0000 (14:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 22 Feb 2016 09:01:28 +0000 (09:01 +0000)
Sometimes when updating osstest to use a newer version of Debian as a
baseline we find that the new compiler or other tools pickup latent
errors in older code bases for which the fixes are invasive or
otherwise inappropriate for a stable branch.

This is the case with Debian Jessie and Xen 4.3 and earlier, so
restrict those branches to keep using Wheezy.

This only applies to xen-X.Y-testing branches and
qemu-upstream-X.Y-testing branches since other branch all use
xen-unstable as their Xen.

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

index 885870cd91f55c792a3fda236d1c0c1bbb070563..8acfcb9801e467ec8c517c3c48d5632aa28d892e 100755 (executable)
@@ -31,8 +31,21 @@ flight=`./cs-flight-create $blessing $branch`
 . ./ap-common
 . ./mfi-common
 
-defsuite=`getconfig DebianSuite`
-defguestsuite=`getconfig GuestDebianSuite`
+# Older versions of Xen may not build with the current default.  Note
+# that branches older than 4.3 might need something even older than
+# Wheezy, but we have not done the archaeology to figure out what they
+# require.
+case "$xenbranch" in
+  xen-3.*-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+  xen-4.0-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+  xen-4.1-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+  xen-4.2-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+  xen-4.3-testing) defsuite="wheezy"; defguestsuite="wheezy";;
+  *)
+    defsuite=`getconfig DebianSuite`
+    defguestsuite=`getconfig GuestDebianSuite`
+    ;;
+esac
 
 # Pick default Debian Installer version to correspond to the chosen
 # suite.