From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [OSSTEST v6 19/24] make-flight: refactor PV debian tests Date: Wed, 6 May 2015 10:56:48 +0100 Message-ID: <1430906213-30108-19-git-send-email-ian.campbell@citrix.com> References: <1430905605.2660.187.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1430905605.2660.187.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 Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org No functional change, standalong-generate-dump-flight-runvars confirms no change to the runvars. Includes a hook which is not used yet, $recipe_sfx. Signed-off-by: Ian Campbell --- v4: new patch --- make-flight | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/make-flight b/make-flight index ca48b81..909cebe 100755 --- a/make-flight +++ b/make-flight @@ -339,6 +339,17 @@ do_pvgrub_tests () { all_hostflags=$most_hostflags } +do_pv_debian_test_one () { + testname=$1; shift + recipe_sfx=$1; shift + toolstack=$1; shift + + job_create_test test-$xenarch$kern-$dom0arch-$testname \ + test-debian$recipe_sfx $toolstack \ + $xenarch $dom0arch \ + $debian_runvars all_hostflags=$most_hostflags $@ +} + do_pv_debian_tests () { xsms=$(xenbranch_xsm_variants) @@ -354,20 +365,13 @@ do_pv_debian_tests () { suffix=${platform:+-$platform} hostflags=${most_hostflags}${platform:+,platform-$platform} - job_create_test test-$xenarch$kern-$dom0arch-xl$suffix \ - test-debian xl \ - $xenarch $dom0arch \ - enable_xsm=$xsm \ - $debian_runvars all_hostflags=$hostflags + do_pv_debian_test_one xl$suffix '' xl enable_xsm=$xsm + done done for xsm in $xsms ; do - job_create_test test-$xenarch$kern-$dom0arch-libvirt \ - test-debian libvirt \ - $xenarch $dom0arch \ - enable_xsm=$xsm \ - $debian_runvars all_hostflags=$most_hostflags + do_pv_debian_test_one libvirt '' libvirt enable_xsm=$xsm done } -- 2.1.4