aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-07-22 23:40:28 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-07-22 23:40:28 +0200
commit0f6c6171d514f6f7c3cb376bd40f20468a37bc41 (patch)
tree156bcf24ed335f966f717d213d4c61ef4d98dbb4 /ci
parent17cce367746a8a750369be25cef50632ede91216 (diff)
Add duration message after test execution
Change-Id: Ida68009ba02b2a5135dc4f3ae958fc77088389d7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/run_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ci/run_tests.py b/ci/run_tests.py
index f252f81a..0fb85013 100755
--- a/ci/run_tests.py
+++ b/ci/run_tests.py
@@ -9,6 +9,7 @@
#
import argparse
+import datetime
import os
import re
import sys
@@ -70,6 +71,7 @@ def cleanup():
def run_test(test):
+ start = datetime.datetime.now()
test_name = test.get_name()
logger.info("\n") # blank line
print_separator("=")
@@ -98,6 +100,10 @@ def run_test(test):
if CLEAN_FLAG:
cleanup()
+ end = datetime.datetime.now()
+ duration = (end - start).seconds
+ str = ("%02d:%02d" % divmod(duration, 60))
+ logger.info("Test execution time: %s" % str)
def run_tier(tier):