Skip to contentSkip to conversation

Enable running test(s) multiple times (iterations)

PATCH New Uri Lublin 2 participants 3 messages Jun 11, 2009 – Jun 12, 2009 KVM

lore
Share & tools
lore

Uri Lublin

author
#0 lore raw

PATCH 1/1 Enable running test(s) multiple times (iterations)

The following patch did not make it in the merge. I've been waiting for the merge to stabilize first.

author
#1 lore raw

PATCH 1/1 Enable running test(s) multiple times (iterations)

From: Supriya Kannery <[email protected]>

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.

---
 client/tests/kvm/control |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
client/tests/kvm/control +3 -1
index b3543ee..c030a14 100644
@@ -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
Signature · 1 line
1.6.2.2
#2 lore raw
Quoted 20 lines · Uri Lublin

From: Supriya Kannery <[email protected]>

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.

---
 client/tests/kvm/control |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
client/tests/kvm/control +0 -0
index b3543ee..c030a14 100644
@@ -145,8 +145,10 @@ for dict in list:
                 dependencies_satisfied = False

client/tests/kvm/control for dict in list: · line 154

Quoted 10 lines
client/tests/kvm/control +3 -1
                 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

Looks good to me, applied. Thanks!

Signature · 3 lines
Lucas Meneghel Rodrigues
Software Engineer (QE)
Red Hat - Emerging Technologies