From patchwork Mon May 2 16:26:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 747622 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p42GQevB000736 for ; Mon, 2 May 2011 16:26:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754564Ab1EBQ0g (ORCPT ); Mon, 2 May 2011 12:26:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58162 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753314Ab1EBQ0g (ORCPT ); Mon, 2 May 2011 12:26:36 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p42GQYeu013852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 May 2011 12:26:34 -0400 Received: from freedom.redhat.com (vpn-9-65.rdu.redhat.com [10.11.9.65]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p42GQWLX026430; Mon, 2 May 2011 12:26:33 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] virt.virt_utils: Fix hardcoded test URL in run_tests() Date: Mon, 2 May 2011 13:26:35 -0300 Message-Id: <1304353595-8951-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 02 May 2011 16:26:41 +0000 (UTC) Now that we aim to have different implementations of virtualization tests, the utility function run_tests() can't have the 'kvm' url hardcoded in the function. Rather, it needs to pick up 'vm_type' from the test params. Signed-off-by: Lucas Meneghel Rodrigues --- client/virt/virt_utils.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/virt/virt_utils.py b/client/virt/virt_utils.py index 398ecd4..5510c89 100644 --- a/client/virt/virt_utils.py +++ b/client/virt/virt_utils.py @@ -1170,7 +1170,8 @@ def run_tests(parser, job): # We need only one execution, profiled, hence we're passing # the profile_only parameter to job.run_test(). profile_only = bool(profilers) or None - current_status = job.run_test_detail("kvm", params=dict, + current_status = job.run_test_detail(dict.get("vm_type"), + params=dict, tag=test_tag, iterations=test_iterations, profile_only=profile_only) @@ -1179,7 +1180,8 @@ def run_tests(parser, job): else: # We will force the test to fail as TestNA during preprocessing dict['dependency_failed'] = 'yes' - current_status = job.run_test_detail("kvm", params=dict, + current_status = job.run_test_detail(dict.get("vm_type"), + params=dict, tag=test_tag, iterations=test_iterations)