From patchwork Fri Jan 8 14:29:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 7986851 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 922BBBEEED for ; Fri, 8 Jan 2016 14:32:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2B2620142 for ; Fri, 8 Jan 2016 14:32:57 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D691201F2 for ; Fri, 8 Jan 2016 14:32:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aHY3m-00058p-Fg; Fri, 08 Jan 2016 14:30:34 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aHY3k-000571-Jd for xen-devel@lists.xen.org; Fri, 08 Jan 2016 14:30:32 +0000 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id 16/19-29649-708CF865; Fri, 08 Jan 2016 14:30:31 +0000 X-Env-Sender: prvs=80839a509=Ian.Campbell@citrix.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1452263427!7209833!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 63038 invoked from network); 8 Jan 2016 14:30:29 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-16.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 8 Jan 2016 14:30:29 -0000 X-IronPort-AV: E=Sophos;i="5.20,538,1444694400"; d="scan'208";a="329856763" From: Ian Campbell To: , Date: Fri, 8 Jan 2016 14:29:51 +0000 Message-ID: <1452263399-14094-4-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1452263368.29416.39.camel@citrix.com> References: <1452263368.29416.39.camel@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell Subject: [Xen-devel] [PATCH RFC OSSTEST v1 04/12] mfi-common: always add host suite to hostos_runvars X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This avoids situations where production-config* has changed DebianSuite but the bisector is still picking up baselines etc from before the change and reusing their runvars (without suite) with an inconsistent config. Switch selecthost() to use target_var when querying the suite. This means it will check the "{ident}_suite" runvar first as before but fallback to just looking at the "all_host_suite" runvar. We also change the existing host_suite to all_host_suite in mfi-commong so that test_matrix_iterate() needn't worry about ident=host vs =src_host/dst_host etc (of course this can still be overridden if desired by using src_host_suite etc, but nowhere does. Other uses of $c{DebianSuite} have been abolished already. Note that "$suite != $defsuite" is not true for any current production invocation of osstest. If this was ever true then we would have set the host_suite runvar, whereas now we always set all_host_suite. However any old flights with host_suite would still be interpretted the same. Note also that the "$suite != $defsuite" case was previously broken for the -pair tests since the host idents there are 'src_host' and 'dst_host', so the previous code would have fallen back to $c{DebianSuite} without looking at the host_suite runvar. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- runvars changes are lots of: +xen-unstable test-amd64-amd64-amd64-pvgrub all_host_suite jessie +xen-unstable test-amd64-amd64-i386-pvgrub all_host_suite jessie +xen-unstable test-amd64-amd64-libvirt all_host_suite jessie and: +xen-unstable build-amd64 all_host_suite jessie +xen-unstable build-amd64-libvirt all_host_suite jessie +xen-unstable build-amd64-oldkern all_host_suite jessie --- Osstest/TestSupport.pm | 3 +-- mfi-common | 12 ++---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index baff4f8..3923b18 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -861,8 +861,7 @@ sub selecthost ($) { Info => [], }; if (defined $job) { - $ho->{Suite} = get_runvar_default("${ident}_suite",$job, - $c{DebianSuite}); + $ho->{Suite} = target_var($ho, "suite") // $c{DebianSuite}; } #----- handle hosts which are themselves guests (nested) ----- diff --git a/mfi-common b/mfi-common index ccf8a5b..0e2b64f 100644 --- a/mfi-common +++ b/mfi-common @@ -123,11 +123,7 @@ create_build_jobs () { *) suite=$defsuite;; esac - if [ $suite != $defsuite ] ; then - hostos_runvars="host_suite=$suite" - else - hostos_runvars= - fi + hostos_runvars="all_host_suite=$suite" # 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 @@ -409,11 +405,7 @@ test_matrix_iterate () { *) suite=$defsuite; guestsuite=$defguestsuite;; esac - if [ $suite != $defsuite ] ; then - hostos_runvars="host_suite=$suite" - else - hostos_runvars= - fi + hostos_runvars="all_host_suite=$suite" for kern in ''; do