From: Morgan Richomme Date: Fri, 24 Jun 2016 08:36:01 +0000 (+0200) Subject: bug fix: duplicate start_date var with different type X-Git-Tag: 0.2~1462^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=c632a09b4613bb1201cbd6b3d184f87fddb1abec;p=functest-xtesting.git bug fix: duplicate start_date var with different type mix between the var and its display value leads to problem when pushing the results to the DB Change-Id: I582785f38f35add1251b58491843b4f3f20a3ff8 Signed-off-by: Morgan Richomme --- diff --git a/testcases/features/promise.py b/testcases/features/promise.py index 7f034643..fe1547af 100644 --- a/testcases/features/promise.py +++ b/testcases/features/promise.py @@ -215,7 +215,7 @@ def main(): passes = json_data["stats"]["passes"] pending = json_data["stats"]["pending"] failures = json_data["stats"]["failures"] - start_time = json_data["stats"]["start"] + start_time_json = json_data["stats"]["start"] end_time = json_data["stats"]["end"] duration = float(json_data["stats"]["duration"]) / float(1000) @@ -233,7 +233,7 @@ def main(): " Duration:\t%s\n" "****************************************\n\n" % (suites, tests, passes, pending, failures, - start_time, end_time, duration)) + start_time_json, end_time, duration)) if args.report: stop_time = time.time()