run-tests: handle mixed comment lines in blacklists stable
authorPatrick Mezard <pmezard@gmail.com>
Sun, 06 Mar 2011 14:19:57 +0100
branchstable
changeset 882 c3681742c0c7
parent 880 0b9f0c42b566
child 883 460ab7a133ac
child 884 fe775751eb93
run-tests: handle mixed comment lines in blacklists [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Fri Dec 24 15:23:01 2010 +0100
+++ b/tests/run-tests.py	Sun Mar 06 14:19:57 2011 +0100
@@ -227,8 +227,8 @@
                 continue
 
             for line in f.readlines():
-                line = line.strip()
-                if line and not line.startswith('#'):
+                line = line.split('#', 1)[0].strip()
+                if line:
                     blacklist[line] = filename
 
             f.close()