diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-06 10:04:36 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-06 10:04:36 (GMT) |
commit | 9e586c2b3521188eece23432f2a39e8f728a68af (patch) | |
tree | fa7162bad399f6be6dbc4f56ea5ee1b3b77fadc1 /Lib/test/regrtest.py | |
parent | 8480bc65bc475a8b7737dc8d23131325cd9ca02f (diff) | |
download | cpython-9e586c2b3521188eece23432f2a39e8f728a68af.zip cpython-9e586c2b3521188eece23432f2a39e8f728a68af.tar.gz cpython-9e586c2b3521188eece23432f2a39e8f728a68af.tar.bz2 |
Issue #12250: modify "make buildbottest" command line instead of TESTOPTS
Add TESTTIMEOUT variable (default: 3600 seconds). Use TESTTIMEOUT=0 to disable
the timeout.
***
fix
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index c83d7e1..529734a 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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: |