mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #12250: modify "make buildbottest" command line instead of TESTOPTS
Add TESTTIMEOUT variable (default: 3600 seconds). Use TESTTIMEOUT=0 to disable the timeout. *** fix
This commit is contained in:
parent
8480bc65bc
commit
9e586c2b35
2 changed files with 6 additions and 5 deletions
|
|
@ -22,7 +22,8 @@ Options:
|
|||
-h/--help -- print this text and exit
|
||||
--timeout TIMEOUT
|
||||
-- dump the traceback and exit if a test takes more
|
||||
than TIMEOUT seconds
|
||||
than TIMEOUT seconds; disabled if TIMEOUT is negative
|
||||
or equals to zero
|
||||
--wait -- wait for user input, e.g., allow a debugger to be attached
|
||||
|
||||
Verbosity
|
||||
|
|
@ -420,8 +421,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
|||
sys.exit(1)
|
||||
timeout = float(a)
|
||||
if timeout <= 0:
|
||||
print("The timeout must be greater than 0", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
timeout = None
|
||||
elif o == '--wait':
|
||||
input("Press any key to continue...")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue