From: Morgan Richomme Date: Mon, 13 Jun 2016 07:57:34 +0000 (+0200) Subject: bug fix: end_time var does not exist to calculate duration X-Git-Tag: 0.2~1497 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=9b8807120318bceb14fb7c1012652e04fe06b40a;p=functest-xtesting.git bug fix: end_time var does not exist to calculate duration Change-Id: If73b6fbf022a837e4cb0190ab8074d18017ca57b Signed-off-by: Morgan Richomme --- diff --git a/testcases/features/doctor.py b/testcases/features/doctor.py index c7fc848c..ca362ba6 100644 --- a/testcases/features/doctor.py +++ b/testcases/features/doctor.py @@ -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'