From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: autotest@test.kernel.org
Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues <lmr@redhat.com>
Subject: [PATCH] virt.virt_utils: Fix hardcoded test URL in run_tests()
Date: Mon, 2 May 2011 13:26:35 -0300 [thread overview]
Message-ID: <1304353595-8951-1-git-send-email-lmr@redhat.com> (raw)
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 <lmr@redhat.com>
---
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)
--
1.7.5
reply other threads:[~2011-05-02 16:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1304353595-8951-1-git-send-email-lmr@redhat.com \
--to=lmr@redhat.com \
--cc=autotest@test.kernel.org \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).