From: Mike Burns Subject: [PATCH][KVM-AUTOTEST] Have Custom install chdir to test.bindir Date: Wed, 20 May 2009 16:38:50 -0400 Message-ID: <1242851931-8492-1-git-send-email-mburns@redhat.com> Cc: dhuff@redhat.com, ulublin@redhat.com, Mike Burns To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([66.187.233.31]:54649 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754466AbZETUix (ORCPT ); Wed, 20 May 2009 16:38:53 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n4KKcsU9027517 for ; Wed, 20 May 2009 16:38:55 -0400 Sender: kvm-owner@vger.kernel.org List-ID: If you are using custom install and load_modules=yes, then autotest needs to change to the test.bindir so that it looks for kernel modules in the right place. Signed-off-by: Mike Burns --- client/tests/kvm_runtest_2/kvm_install.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm_runtest_2/kvm_install.py b/client/tests/kvm_runtest_2/kvm_install.py index d1aceb2..ebd8b7d 100755 --- a/client/tests/kvm_runtest_2/kvm_install.py +++ b/client/tests/kvm_runtest_2/kvm_install.py @@ -79,6 +79,7 @@ def run_kvm_install(test, params, env): # install from custom script elif install_mode == "custom": + os.chdir(test.bindir) install_script = params.get("install_script") script = os.path.join(test.bindir,install_script) if not install_script: -- 1.5.5.6