summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2016-12-18 20:48:56 -0500
committerMatthewLi <matthew.lijun@huawei.com>2016-12-20 02:34:57 -0500
commit06bc12f0b6212ee5e9a29468da327d52ad057fac (patch)
tree452448c30b0ff330e8154358edc5fb08368531fa /dovetail/run.py
parent18ed566c5e1a379d5b87d3838dea82a9481ba61b (diff)
bugfix for duration missed
JIRA: DOVETAIL-162 Change-Id: Idc78790e49ab3e3552d45b902cfdf8cc37fd2847 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index c0cc872c..75a6fc31 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -11,6 +11,7 @@
import click
import os
import copy
+import time
import utils.dovetail_logger as dt_logger
import utils.dovetail_utils as dt_utils
@@ -58,7 +59,10 @@ def run_test(testsuite, testarea, logger):
run_testcase = False
if run_testcase:
+ start_time = time.time()
testcase.run()
+ end_time = time.time()
+ duration = end_time - start_time
db_result = Report.get_result(testcase)
Report.check_result(testcase, db_result)