sanitycheck: print elapsed time
Change-Id: I5e18edaf9074f0166582fc51da81bb8978c9038b Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
ae3c6c00c2
commit
4b18247749
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue