From: Ian Campbell Subject: Re: [OSSTEST PATCH RFC v1 10/12] make-flight: create XSM test jobs Date: Wed, 24 Sep 2014 12:00:53 +0100 Message-ID: <1411556453.26204.4.camel@kazak.uk.xensource.com> References: <1411395121-6528-1-git-send-email-wei.liu2@citrix.com> <1411395121-6528-11-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411395121-6528-11-git-send-email-wei.liu2@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: Wei Liu Cc: dgdegra@tycho.nsa.gov, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-09-22 at 15:11 +0100, Wei Liu wrote: > @@ -214,13 +224,13 @@ do_hvm_debian_tests() { > > # QEMU upstream supports ovmf and seabios > if [ "x$qemuu_suffix" == "x-qemuu" ]; then > - do_hvm_debian_test_one ovmf ovmf > - do_hvm_debian_test_one debianhvm seabios > + do_hvm_debian_test_one ovmf ovmf false > + do_hvm_debian_test_one debianhvm seabios true I think it would be less repetitive to duplicate these lines as necessary rather than duping the job creation inside these functions. So e.g.: + do_hvm_debian_test_one ovmf ovmf false + do_hvm_debian_test_one debianhvm seabios false + do_hvm_debian_test_one debianhvm seabios true > # Basic PV Linux test with xl > > job_create_test test-$xenarch$kern-$dom0arch-xl test-debian xl \ > $xenarch $dom0arch \ > + enable_xsm=n \ > $debian_runvars all_hostflags=$most_hostflags > > + if [ x$test_xsm = xy ] ; then > + job_create_test test-$xenarch$kern-$dom0arch-xl-xsm test-debian xl \ > + $xenarch $dom0arch \ > + enable_xsm=y \ > + $debian_runvars all_hostflags=$most_hostflags > + fi Refactor this into a fnction and call it a second time? > + > job_create_test test-$xenarch$kern-$dom0arch-libvirt test-debian libvirt \ > $xenarch $dom0arch \ > $debian_runvars all_hostflags=$most_hostflags