bug fix: duplicate start_date var with different type
authorMorgan Richomme <morgan.richomme@orange.com>
Fri, 24 Jun 2016 08:36:01 +0000 (10:36 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Fri, 24 Jun 2016 08:36:01 +0000 (10:36 +0200)
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 <morgan.richomme@orange.com>
testcases/features/promise.py

index 7f03464..fe1547a 100644 (file)
@@ -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()