Changeset 5b993e0 for tests/test.py
- Timestamp:
- Mar 25, 2019, 12:05:29 PM (5 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:
- d3c1c6a
- Parents:
- d4a60ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/test.py
rd4a60ac r5b993e0 1 #!/usr/bin/python 2 from __future__ import print_function 1 #!/usr/bin/python3 3 2 4 3 from pybin.tools import * … … 102 101 print('ERROR: invalid arguments', file=sys.stderr) 103 102 parser.print_help(sys.stderr) 104 103 sys.exit(1) 105 104 106 105 # script must have at least some tests to run or be listing … … 112 111 # check that exactly one of the booleans is set to true 113 112 if not sum( (listing, all_tests, some_tests, some_dirs) ) > 0 : 114 print(' ERROR: must have option \'--all\', \'--list\', \'--include\', \'-I\' or non-empty test list', file=sys.stderr)113 print('''ERROR: must have option '--all', '--list', '--include', '-I' or non-empty test list''', file=sys.stderr) 115 114 parser.print_help() 116 115 sys.exit(1) … … 281 280 elif options.list : 282 281 print("Listing for %s:%s"% (settings.arch.string, settings.debug.string)) 283 fancy_print("\n".join(map(lambda t: "%s" % (t.toString()), tests)))282 fancy_print("\n".join(map(lambda t: t.toString(), tests))) 284 283 285 284 else :
Note: See TracChangeset
for help on using the changeset viewer.