bug fix: end_time var does not exist to calculate duration 33/15433/1
authorMorgan Richomme <morgan.richomme@orange.com>
Mon, 13 Jun 2016 07:57:34 +0000 (09:57 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 13 Jun 2016 07:57:34 +0000 (09:57 +0200)
Change-Id: If73b6fbf022a837e4cb0190ab8074d18017ca57b
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
testcases/features/doctor.py

index c7fc848..ca362ba 100644 (file)
@@ -39,7 +39,7 @@ def main():
     ret = functest_utils.execute_command(cmd, logger, exit_on_error=False)
 
     stop_time = time.time()
-    duration = round(end_time_ts - start_time, 1)
+    duration = round(stop_time - start_time, 1)
     if ret:
         logger.info("doctor OK")
         test_status = 'OK'