Changeset d3c1c6a
- Timestamp:
- Mar 25, 2019, 1:40:20 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- eb60b04
- Parents:
- 5b993e0
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
r5b993e0 rd3c1c6a 110 110 global install 111 111 global timeout 112 global width 112 113 113 114 dry_run = options.dry_run … … 118 119 arch = Architecture(options.arch) 119 120 timeout = Timeouts(options.timeout, options.global_timeout) 121 width = 24 120 122 121 123 … … 137 139 138 140 tools.rm(errf) 141 142 def prep_output(tests): 143 global width 144 width = max(map(lambda t: len(t.target()), tests)) -
tests/test.py
r5b993e0 rd3c1c6a 188 188 # run a single test and handle the errors, outputs, printing, exception handling, etc. 189 189 def run_test_worker(t) : 190 191 190 with SignalHandling(): 192 191 # print formated name 193 name_txt = "%24s " % t.name192 name_txt = '{0:{width}} '.format(t.target(), width=settings.width) 194 193 195 194 retcode, error, duration = run_single_test(t) … … 284 283 else : 285 284 # check the build configuration works 285 settings.prep_output(tests) 286 286 settings.validate() 287 287
Note: See TracChangeset
for help on using the changeset viewer.