diff options
author | Steven Knight <knight@baldmt.com> | 2010-06-10 08:19:53 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-06-10 08:19:53 (GMT) |
commit | 1dc992070b764deba45742ca3325938c6162e995 (patch) | |
tree | b411e36b1daa61aa76395d4d11153fe6a4b693c6 /test/Fortran/SHFORTRANFLAGS.py | |
parent | b9bf799d4ee594f37b3a404a4e18dbee3fe56533 (diff) | |
download | SCons-1dc992070b764deba45742ca3325938c6162e995.zip SCons-1dc992070b764deba45742ca3325938c6162e995.tar.gz SCons-1dc992070b764deba45742ca3325938c6162e995.tar.bz2 |
Increase the default timeout of TestSCons.wait_for() to 20.0 seconds.
(--interactive mode on our Solaris buildbot slave takes longer than
10 seconds to create the necessary marker files.)
Set the stdin attribute on our popen object to None after we close it,
so some versions of subprocess.py don't try to write it after it's closed.
If we time out waiting for a marker file to be created, then print any
stdout or stderr that's already accumulated, since that may give clues
about why the test failed.
Diffstat (limited to 'test/Fortran/SHFORTRANFLAGS.py')
-rw-r--r-- | test/Fortran/SHFORTRANFLAGS.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Fortran/SHFORTRANFLAGS.py b/test/Fortran/SHFORTRANFLAGS.py index 65f6a6c..11116f4 100644 --- a/test/Fortran/SHFORTRANFLAGS.py +++ b/test/Fortran/SHFORTRANFLAGS.py @@ -37,11 +37,11 @@ test = TestSCons.TestSCons() test.write('myfortran.py', r""" import getopt import sys -opts, args = getopt.getopt(sys.argv[1:], 'cf:o:x') +opts, args = getopt.getopt(sys.argv[1:], 'cf:K:o:x') optstring = '' for opt, arg in opts: if opt == '-o': out = arg - elif opt != '-f': optstring = optstring + ' ' + opt + elif opt not in ('-f', '-K'): optstring = optstring + ' ' + opt infile = open(args[0], 'rb') outfile = open(out, 'wb') outfile.write(optstring + "\n") |