diff options
author | Steven Knight <knight@baldmt.com> | 2005-03-30 12:05:24 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-03-30 12:05:24 (GMT) |
commit | 022b115bb9652b1ea93a106b53d77a9ef23a00a2 (patch) | |
tree | 9de364290e97dcc326ef1ac26ddfa9906d657cf9 /runtest.py | |
parent | f8e0d6d523f37a813eae06bc1d3a24cf49aa8d49 (diff) | |
download | SCons-022b115bb9652b1ea93a106b53d77a9ef23a00a2.zip SCons-022b115bb9652b1ea93a106b53d77a9ef23a00a2.tar.gz SCons-022b115bb9652b1ea93a106b53d77a9ef23a00a2.tar.bz2 |
Support commenting out lines in a runtest.py -f file.
Diffstat (limited to 'runtest.py')
-rw-r--r-- | runtest.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -344,7 +344,10 @@ elif all: keys.sort() tests = map(tdict.get, keys) elif testlistfile: - tests = map(Test, map(lambda x: x[:-1], open(testlistfile, 'r').readlines())) + tests = open(testlistfile, 'r').readlines() + tests = filter(lambda x: x[0] != '#', tests) + tests = map(lambda x: x[:-1], tests) + tests = map(Test, tests) else: sys.stderr.write("""\ runtest.py: No tests were specified on the command line. |