summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-30 12:05:24 (GMT)
committerSteven Knight <knight@baldmt.com>2005-03-30 12:05:24 (GMT)
commit9208c304446799338a73b4d8b96e779e922b0313 (patch)
tree9de364290e97dcc326ef1ac26ddfa9906d657cf9 /runtest.py
parentf5d6ddc2d46edb3812d26990c35b8713cdb87492 (diff)
downloadSCons-9208c304446799338a73b4d8b96e779e922b0313.zip
SCons-9208c304446799338a73b4d8b96e779e922b0313.tar.gz
SCons-9208c304446799338a73b4d8b96e779e922b0313.tar.bz2
Support commenting out lines in a runtest.py -f file.
Diffstat (limited to 'runtest.py')
-rw-r--r--runtest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtest.py b/runtest.py
index df97eea..7f36479 100644
--- a/runtest.py
+++ b/runtest.py
@@ -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.