[PATCH] virt.virt_utils: Fix hardcoded test URL in run_tests()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux