From: Lucas Meneghel Rodrigues Subject: [PATCH 2/5] KVM test: Unattended script: Make qemu_img_bin come from test params Date: Tue, 8 Dec 2009 00:59:02 -0200 Message-ID: <1260241145-19029-2-git-send-email-lmr@redhat.com> References: <1260241145-19029-1-git-send-email-lmr@redhat.com> Cc: kvm@vger.kernel.org, mgoldish@redhat.com, Lucas Meneghel Rodrigues To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1026 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965411AbZLHC7V (ORCPT ); Mon, 7 Dec 2009 21:59:21 -0500 In-Reply-To: <1260241145-19029-1-git-send-email-lmr@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Instead of hard coding the path to qemu-img on the unattended_install script, let's pick it up from the test parameters. Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/scripts/unattended.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/scripts/unattended.py b/client/tests/kvm/scripts/unattended.py index 2667649..562d317 100755 --- a/client/tests/kvm/scripts/unattended.py +++ b/client/tests/kvm/scripts/unattended.py @@ -53,7 +53,7 @@ class UnattendedInstall(object): cdrom_iso = os.environ['KVM_TEST_cdrom'] self.unattended_file = os.environ['KVM_TEST_unattended_file'] - self.qemu_img_bin = os.path.join(kvm_test_dir, 'qemu-img') + self.qemu_img_bin = os.environ['KVM_TEST_qemu_img_binary'] self.cdrom_iso = os.path.join(kvm_test_dir, cdrom_iso) self.floppy_mount = tempfile.mkdtemp(prefix='floppy_', dir='/tmp') self.cdrom_mount = tempfile.mkdtemp(prefix='cdrom_', dir='/tmp') -- 1.6.5.2