Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/test.py

    rca54499 r16a63a78  
    99import re
    1010import sys
    11 import time
    1211
    1312################################################################################
     
    137136
    138137        # build, skipping to next test on error
    139         before = time.time()
    140138        make_ret, _ = make( test.target(),
    141139                redirects  = "2> %s 1> /dev/null" % out_file,
    142140                error_file = err_file
    143141        )
    144         after = time.time()
    145 
    146         comp_dur = after - before
    147 
    148         run_dur = None
    149142
    150143        # if the make command succeds continue otherwise skip to diff
    151144        if make_ret == 0 or settings.dry_run:
    152                 before = time.time()
    153145                if settings.dry_run or fileIsExecutable(test.target()) :
    154146                        # run test
     
    157149                        # simply cat the result into the output
    158150                        retcode, _ = sh("cat %s > %s" % (test.target(), out_file))
    159 
    160                 after = time.time()
    161                 run_dur = after - before
    162151        else:
    163152                retcode, _ = sh("mv %s %s" % (err_file, out_file))
     
    185174        sh("rm -f %s > /dev/null 2>&1" % test.target())
    186175
    187         return retcode, error, [comp_dur, run_dur]
     176        return retcode, error
    188177
    189178# run a single test and handle the errors, outputs, printing, exception handling, etc.
     
    194183                name_txt = "%20s  " % t.name
    195184
    196                 retcode, error, duration = run_single_test(t)
     185                retcode, error = run_single_test(t)
    197186
    198187                # update output based on current action
    199                 result_txt = TestResult.toString( retcode, duration )
     188                result_txt = TestResult.toString( retcode )
    200189
    201190                #print result with error if needed
Note: See TracChangeset for help on using the changeset viewer.