Enable running test(s) multiple times (iterations)
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.
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.
Signed-off-by Supriya Kannery <[email protected]>
Cc Michael Goldish <[email protected]>
Signed-off-by Uri Lublin <[email protected]>
--- client/tests/kvm/control | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
client/tests/kvm/control +3 -1
@@ -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
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.
Signed-off-by Supriya Kannery <[email protected]>Cc Michael Goldish <[email protected]>Signed-off-by Uri Lublin <[email protected]>--- client/tests/kvm/control | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)client/tests/kvm/control +0
-0@@ -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
-1break 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