From: Avi Kivity Subject: [PATCH kvm-autotest] Fix command line for obtaining version number Date: Sun, 29 Mar 2009 18:07:46 +0300 Message-ID: <1238339266-24816-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Uri Lublin Return-path: Received: from mx2.redhat.com ([66.187.237.31]:47858 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757527AbZC2PIN (ORCPT ); Sun, 29 Mar 2009 11:08:13 -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 n2TF8Bo3020861 for ; Sun, 29 Mar 2009 11:08:11 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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: -- 1.6.0.6