From patchwork Mon Jan 18 04:28:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 73623 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0I4SKLC009823 for ; Mon, 18 Jan 2010 04:28:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755644Ab0ARE2P (ORCPT ); Sun, 17 Jan 2010 23:28:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755623Ab0ARE2P (ORCPT ); Sun, 17 Jan 2010 23:28:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14768 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754838Ab0ARE2O (ORCPT ); Sun, 17 Jan 2010 23:28:14 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0I4SCbm003525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 17 Jan 2010 23:28:13 -0500 Received: from localhost.localdomain (vpn-8-173.rdu.redhat.com [10.11.8.173]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0I4SAHh005894; Sun, 17 Jan 2010 23:28:11 -0500 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: unattended script: Check qemu-img bin path Date: Mon, 18 Jan 2010 02:28:09 -0200 Message-Id: <1263788889-9924-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/scripts/unattended.py b/client/tests/kvm/scripts/unattended.py index ee20b60..13f431a 100755 --- a/client/tests/kvm/scripts/unattended.py +++ b/client/tests/kvm/scripts/unattended.py @@ -54,6 +54,8 @@ class UnattendedInstall(object): self.unattended_file = os.environ['KVM_TEST_unattended_file'] self.qemu_img_bin = os.environ['KVM_TEST_qemu_img_binary'] + if not os.path.isabs(self.qemu_img_bin): + self.qemu_img_bin = os.path.join(kvm_test_dir, self.qemu_img_bin) 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')