[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
This commit is contained in:
Andrey Kurilin 2015-11-06 19:23:37 +02:00
parent dde6a8cfad
commit ea084e7948

View File

@ -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")