Changeset d3c1c6a


Ignore:
Timestamp:
Mar 25, 2019, 1:40:20 PM (2 years ago)
Author:
tdelisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
eb60b04
Parents:
5b993e0
Message:

Tests now prints path+name when runnning

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r5b993e0 rd3c1c6a  
    110110        global install
    111111        global timeout
     112        global width
    112113
    113114        dry_run    = options.dry_run
     
    118119        arch       = Architecture(options.arch)
    119120        timeout    = Timeouts(options.timeout, options.global_timeout)
     121        width      = 24
    120122
    121123
     
    137139
    138140        tools.rm(errf)
     141
     142def prep_output(tests):
     143        global width
     144        width = max(map(lambda t: len(t.target()), tests))
  • tests/test.py

    r5b993e0 rd3c1c6a  
    188188# run a single test and handle the errors, outputs, printing, exception handling, etc.
    189189def run_test_worker(t) :
    190 
    191190        with SignalHandling():
    192191                # print formated name
    193                 name_txt = "%24s  " % t.name
     192                name_txt = '{0:{width}}  '.format(t.target(), width=settings.width)
    194193
    195194                retcode, error, duration = run_single_test(t)
     
    284283        else :
    285284                # check the build configuration works
     285                settings.prep_output(tests)
    286286                settings.validate()
    287287
Note: See TracChangeset for help on using the changeset viewer.