changeset 14446:95715c2f90bf

run-tests: slightly simplify blacklist check
author Idan Kamara <idankk86@gmail.com>
date Fri, 27 May 2011 17:46:47 +0300
parents 61f51f4a9a3b
children f63b7fb4b5f6
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Fri May 27 08:50:27 2011 -0500
+++ b/tests/run-tests.py	Fri May 27 17:46:47 2011 +0300
@@ -733,11 +733,9 @@
     else:
         return None # not a supported test, don't record
 
-    if options.blacklist:
-        filename = options.blacklist.get(test)
-        if filename is not None:
-            skip("blacklisted")
-            return None
+    if options.blacklist and filename in options.blacklist:
+        skip("blacklisted")
+        return None
 
     if options.retest and not os.path.exists(test + ".err"):
         ignore("not retesting")