Support commenting out lines in a runtest.py -f file.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 30 Mar 2005 12:05:24 +0000 (12:05 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 30 Mar 2005 12:05:24 +0000 (12:05 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@1271 fdb21ef1-2011-0410-befe-b5e4ea1792b1

runtest.py

index df97eea289def8bf7405c29a408d569fbade8ad5..7f364793fe28ec00889cfeced798afa9f5123832 100644 (file)
@@ -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.