From: Wei Liu Subject: Re: [OSSTEST PATCH RFC v1 10/12] make-flight: create XSM test jobs Date: Wed, 24 Sep 2014 14:24:24 +0100 Message-ID: <20140924132424.GD14618@zion.uk.xensource.com> References: <1411395121-6528-1-git-send-email-wei.liu2@citrix.com> <1411395121-6528-11-git-send-email-wei.liu2@citrix.com> <1411556453.26204.4.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1411556453.26204.4.camel@kazak.uk.xensource.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 Campbell Cc: ian.jackson@eu.citrix.com, dgdegra@tycho.nsa.gov, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Sep 24, 2014 at 12:00:53PM +0100, Ian Campbell wrote: > 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 > No problem. > > # 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? > Ack. Wei. > > + > > job_create_test test-$xenarch$kern-$dom0arch-libvirt test-debian libvirt \ > > $xenarch $dom0arch \ > > $debian_runvars all_hostflags=$most_hostflags >