From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v2 4/4] make-flight: Add a minimum linux version requirement to all linux-* branches Date: Wed, 16 Sep 2015 12:47:44 +0100 Message-ID: <1442404064-16192-4-git-send-email-ian.campbell@citrix.com> References: <1442404047.18856.51.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1442404047.18856.51.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org We have some hosts in the colo which are not supported by older Linux versions. Add a suitable hostflag using the new resource conditions syntax to cause this to occur. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- mfi-common | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mfi-common b/mfi-common index 991baf5..212a41d 100644 --- a/mfi-common +++ b/mfi-common @@ -365,6 +365,14 @@ test_matrix_iterate () { *) pairtoolstack="xl libvirt" ;; esac + case "$branch" in + linux-[3-9].[0-9]*) + min_linux_hostflag=PropMinVer:LinuxKernelMin:${branch#linux-} + ;; + *) + ;; + esac + for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do if [ "x$xenarch" = xdisable ]; then continue; fi @@ -436,6 +444,9 @@ test_matrix_iterate () { fi most_hostflags="arch-$dom0arch,arch-xen-$xenarch,suite-$suite,purpose-test" + if [ "x$min_linux_hostflag" != "x" ] ; then + most_hostflags="$most_hostflags,$min_linux_hostflag" + fi most_runvars=" arch=$dom0arch \ -- 2.5.1