From patchwork Tue Jun 9 00:34:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 28779 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 n590Z0Oc011522 for ; Tue, 9 Jun 2009 00:35:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754625AbZFIAez (ORCPT ); Mon, 8 Jun 2009 20:34:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754561AbZFIAez (ORCPT ); Mon, 8 Jun 2009 20:34:55 -0400 Received: from mx2.redhat.com ([66.187.237.31]:43862 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753344AbZFIAey (ORCPT ); Mon, 8 Jun 2009 20:34:54 -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 n590Yv0l000364; Mon, 8 Jun 2009 20:34:57 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n590YuGt010946; Mon, 8 Jun 2009 20:34:56 -0400 Received: from localhost.localdomain (vpn-10-92.bos.redhat.com [10.16.10.92]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n590Yqdp011766; Mon, 8 Jun 2009 20:34:54 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , Michael Goldish Subject: [KVM-AUTOTEST PATCH 02/06] kvm_runtest_2.py: Use env filename specified by the 'env' parameter Date: Mon, 8 Jun 2009 21:34:47 -0300 Message-Id: <1244507691-9575-2-git-send-email-lmr@redhat.com> In-Reply-To: <1244507691-9575-1-git-send-email-lmr@redhat.com> References: <1244507691-9575-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Do not use hardcoded environment filename 'env'. Instead use the value specified by the 'env' parameter. If unspecified, use 'env' as the filename. This is important for parallel execution; it may be necessary to use a separate environment file for each process. Signed-off-by: Michael Goldish --- client/tests/kvm/kvm.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm.py b/client/tests/kvm/kvm.py index a658425..9428162 100644 --- a/client/tests/kvm/kvm.py +++ b/client/tests/kvm/kvm.py @@ -82,7 +82,7 @@ class kvm(test.test): self.write_test_keyval({key: params[key]}) # Open the environment file - env_filename = os.path.join(self.bindir, "env") + env_filename = os.path.join(self.bindir, params.get("env", "env")) env = load_env(env_filename, {}) logging.debug("Contents of environment: %s" % str(env))