From 9b8807120318bceb14fb7c1012652e04fe06b40a Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Mon, 13 Jun 2016 09:57:34 +0200 Subject: bug fix: end_time var does not exist to calculate duration Change-Id: If73b6fbf022a837e4cb0190ab8074d18017ca57b Signed-off-by: Morgan Richomme --- testcases/features/doctor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testcases') diff --git a/testcases/features/doctor.py b/testcases/features/doctor.py index c7fc848c5..ca362ba67 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' -- cgit 1.2.3-korg