Ignore:
Timestamp:
May 18, 2009, 3:53:38 PM (11 years ago)
Author:
rwilson
Message:

Added total acceptance test time print-out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy_misc/tools/acceptance_tests/test_all.py

    r7025 r7054  
    8080
    8181    # put header on log
     82    test_start_time = time.time()
     83
    8284    util.log_nl(logfile, '#' * 80)
    8385    util.log_nl(logfile, '# Acceptance test of cluster %s' % hostname)
     
    101103
    102104        util.footer(logfile, start_time)
     105
     106    test_stop_time = time.time()
     107    test_elapsed_time = test_stop_time - test_start_time
     108
     109    util.log_nl(logfile)
     110    util.log_nl(logfile, '#' * 80)
     111    util.log_nl(logfile, '# Acceptance test of cluster %s took %.1fs'
     112                         % (hostname, test_elapsed_time))
     113    util.log_nl(logfile, '#' * 80)
Note: See TracChangeset for help on using the changeset viewer.