From ea084e79483dd44a1accc9d0b95e3b8b2894dbe9 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Fri, 6 Nov 2015 19:23:37 +0200 Subject: [PATCH] [verify] add ability to turn off compare in job For `full` mode launching verification two times can be redundant as well as compare verifications. Change-Id: I2107fa05d9f6c3db4ff27bbf431d5268346dd23b --- tests/ci/rally_verify.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/ci/rally_verify.py b/tests/ci/rally_verify.py index 4e14c816..c6ce8b5b 100755 --- a/tests/ci/rally_verify.py +++ b/tests/ci/rally_verify.py @@ -145,7 +145,7 @@ def main(): call_rally("deployment use --deployment devstack", print_output=True) call_rally("deployment check", print_output=True) - render_vars = {} + render_vars = {"verifications": []} # Verification management stuff render_vars["install"] = call_rally("verify install") @@ -153,17 +153,15 @@ def main(): render_vars["showconfig"] = call_rally("verify showconfig") # Launch verification - render_vars["first_run"] = launch_verification_once( - MODES_PARAMETERS[args.mode]) + render_vars["verifications"].append(launch_verification_once( + MODES_PARAMETERS[args.mode])) if args.compare: - render_vars["second_run"] = launch_verification_once( - MODES_PARAMETERS[args.mode]) + render_vars["verifications"].append(launch_verification_once( + MODES_PARAMETERS[args.mode])) render_vars["compare"] = do_compare( - render_vars["first_run"]["uuid"], - render_vars["second_run"]["uuid"]) - else: - raise NotImplementedError("You are unable to disable compare now.") + render_vars["verifications"][-2]["uuid"], + render_vars["verifications"][-1]["uuid"]) render_vars["list"] = call_rally("verify list")