sanitycheck: print elapsed time

Change-Id: I5e18edaf9074f0166582fc51da81bb8978c9038b
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2015-07-31 12:25:22 -07:00 committed by Anas Nashif
commit 4b18247749

View file

@ -1429,6 +1429,7 @@ def chatty_test_cb(instances, goals, goal):
log_info(goal.get_error_log())
def main():
start_time = time.time()
global VERBOSE, INLINE_LOGS, PARALLEL
args = parse_arguments()
VERBOSE += args.verbose
@ -1489,10 +1490,10 @@ def main():
if goal.failed:
failed += 1
info("%s%d of %d%s tests passed with %s%d%s warnings" %
info("%s%d of %d%s tests passed with %s%d%s warnings in %d seconds" %
(COLOR_RED if failed else COLOR_GREEN, len(goals) - failed,
len(goals), COLOR_NORMAL, COLOR_YELLOW if warnings else COLOR_NORMAL,
warnings, COLOR_NORMAL))
warnings, COLOR_NORMAL, time.time() - start_time))
if args.testcase_report:
ts.testcase_report(args.testcase_report)