From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uri Lublin Subject: Re: [PATCH kvm-autotest] Fix command line for obtaining version number Date: Mon, 30 Mar 2009 10:33:26 +0300 Message-ID: <49D075C6.9030702@redhat.com> References: <1238339266-24816-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Uri Lublin , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx2.redhat.com ([66.187.237.31]:33980 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755455AbZC3Hdb (ORCPT ); Mon, 30 Mar 2009 03:33:31 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n2U7XUaK012184 for ; Mon, 30 Mar 2009 03:33:30 -0400 In-Reply-To: <1238339266-24816-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > Plain 'qemu' now runs an empty VM; a -help is needed to get the help message. > > Signed-off-by: Avi Kivity > --- > client/tests/kvm_runtest_2/kvm_preprocessing.py | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/client/tests/kvm_runtest_2/kvm_preprocessing.py b/client/tests/kvm_runtest_2/kvm_preprocessing.py > index 5cd6e10..c9eb35d 100644 > --- a/client/tests/kvm_runtest_2/kvm_preprocessing.py > +++ b/client/tests/kvm_runtest_2/kvm_preprocessing.py > @@ -214,7 +214,7 @@ def preprocess(test, params, env): > # Get the KVM userspace version and write it as a keyval > kvm_log.debug("Fetching KVM userspace version...") > qemu_path = os.path.join(test.bindir, "qemu") > - version_line = commands.getoutput("%s | head -n 1" % qemu_path) > + version_line = commands.getoutput("%s -help | head -n 1" % qemu_path) > exp = re.compile("[Vv]ersion .*?,") > match = exp.search(version_line) > if match: Applied, Thanks.