[KVM-AUTOTEST][PATCH] Enable running test(s) multiple times (iterations)

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

 



From: Supriya Kannery <supriyak@xxxxxxxxxx>

Default is to run each test once.

Just add iterations = N in kvm_tests.cfg to the test(s) you
want to run multiple times.

Signed-off-by: Supriya Kannery <supriyak@xxxxxxxxxx>
Cc : Michael Goldish <mgoldish@xxxxxxxxxx>
Signed-off-by: Uri Lublin <uril@xxxxxxxxxx>
---
 client/tests/kvm/control |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/control b/client/tests/kvm/control
index b3543ee..c030a14 100644
--- a/client/tests/kvm/control
+++ b/client/tests/kvm/control
@@ -145,8 +145,10 @@ for dict in list:
                 dependencies_satisfied = False
                 break
     if dependencies_satisfied:
+        test_iterations=int(dict.get("iterations", 1))
         current_status = job.run_test("kvm", params=dict,
-                                      tag=dict.get("shortname"))
+                                      tag=dict.get("shortname"),
+                                      iterations=test_iterations)
     else:
         current_status = False
     status_dict[dict.get("name")] = current_status
-- 
1.6.2.2

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