From patchwork Wed May 20 20:38:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Burns X-Patchwork-Id: 25083 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4KKcwq9005023 for ; Wed, 20 May 2009 20:38:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755541AbZETUiy (ORCPT ); Wed, 20 May 2009 16:38:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754948AbZETUiy (ORCPT ); Wed, 20 May 2009 16:38:54 -0400 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 Received: from mburns.csb (vpn-10-87.bos.redhat.com [10.16.10.87]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n4KKcqP3023970; Wed, 20 May 2009 16:38:52 -0400 Received: by mburns.csb (Postfix, from userid 13432) id 3F4D5A84D1; Wed, 20 May 2009 16:38:51 -0400 (EDT) From: Mike Burns To: kvm@vger.kernel.org Cc: dhuff@redhat.com, ulublin@redhat.com, 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> X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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: