From: Lucas Meneghel Rodrigues Subject: Re: [Autotest] [PATCH] Add 'downscript=no' into kvm command line Date: Fri, 23 Oct 2009 10:13:34 -0200 Message-ID: <6ac58f4f0910230513y40b7eeafvaa74d523e70a29ff@mail.gmail.com> References: <1256096195-4277-1-git-send-email-yzhou@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: autotest@test.kernel.org, kvm@vger.kernel.org To: Yolkfull Chow Return-path: Received: from mail-pw0-f42.google.com ([209.85.160.42]:33112 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751351AbZJWMN3 convert rfc822-to-8bit (ORCPT ); Fri, 23 Oct 2009 08:13:29 -0400 Received: by pwj9 with SMTP id 9so137712pwj.21 for ; Fri, 23 Oct 2009 05:13:34 -0700 (PDT) In-Reply-To: <1256096195-4277-1-git-send-email-yzhou@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Applied, thanks! On Wed, Oct 21, 2009 at 1:36 AM, Yolkfull Chow wrote= : > If no downscript is assigned, add 'downscript=3Dno' to avoid error: > > /etc/qemu-ifdown: could not launch network script > > Signed-off-by: Yolkfull Chow > --- > =A0client/tests/kvm/kvm_vm.py | =A0 =A02 ++ > =A01 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py > index a8d96ca..0b8efbc 100755 > --- a/client/tests/kvm/kvm_vm.py > +++ b/client/tests/kvm/kvm_vm.py > @@ -252,6 +252,8 @@ class VM: > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if script_path: > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 script_path =3D kvm_utils.get= _path(root_dir, script_path) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 qemu_cmd +=3D ",downscript=3D= %s" % script_path > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0else: > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0qemu_cmd +=3D ",downscript=3D= no" > =A0 =A0 =A0 =A0 =A0 =A0 # Proceed to next NIC > =A0 =A0 =A0 =A0 =A0 =A0 vlan +=3D 1 > > -- > 1.6.2.5 > > _______________________________________________ > Autotest mailing list > Autotest@test.kernel.org > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > --=20 Lucas