Changes in tests/test.py [afe8882:575a6e5]
- File:
-
- 1 edited
-
tests/test.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/test.py
rafe8882 r575a6e5 88 88 parser.add_argument('--install', help='Run all tests based on installed binaries or tree binaries', type=yes_no, default='no') 89 89 parser.add_argument('--arch', help='Test for specific architecture', type=str, default='') 90 parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=60)91 parser.add_argument('--global-timeout', help='Maximum cumulative duration in seconds after the ALL tests are considered to have timed out', type=int, default=7200)92 90 parser.add_argument('--dry-run', help='Don\'t run the tests, only output the commands', action='store_true') 93 91 parser.add_argument('--list', help='List all test available', action='store_true') … … 162 160 if settings.dry_run or fileIsExecutable(exe_file) : 163 161 # run test 164 retcode, _ = sh("timeout %d %s > %s 2>&1" % (settings.timeout.single,exe_file, out_file), input = in_file)162 retcode, _ = sh("timeout 60 %s > %s 2>&1" % (exe_file, out_file), input = in_file) 165 163 else : 166 164 # simply cat the result into the output … … 174 172 175 173 if retcode == 0: 176 fixoutput(out_file)177 174 if settings.generating : 178 175 # if we are ounly generating the output we still need to check that the test actually exists … … 185 182 else : 186 183 # fetch return code and error from the diff command 184 fixoutput(out_file) 187 185 retcode, error = diff(cmp_file, out_file) 188 186 … … 236 234 tests, 237 235 chunksize = 1 238 ).get( settings.timeout.total)236 ).get(7200) 239 237 except KeyboardInterrupt: 240 238 pool.terminate() … … 285 283 # users may want to simply list the tests 286 284 if options.list_comp : 287 print("-h --help --debug --dry-run --list --arch --all --regenerate-expected - -install --timeout --global-timeout -j --jobs ", end='')285 print("-h --help --debug --dry-run --list --arch --all --regenerate-expected -j --jobs ", end='') 288 286 print(" ".join(map(lambda t: "%s" % (t.target()), tests))) 289 287
Note:
See TracChangeset
for help on using the changeset viewer.