changeset 13539:b3330b8e1e6f

run-tests: handle mixed comment lines in blacklists
author Patrick Mezard <pmezard@gmail.com>
date Sun, 06 Mar 2011 14:19:57 +0100
parents d24e97fd52a9
children 3ecadce9173d
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Mar 06 14:17:47 2011 +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()