run-tests: slightly simplify blacklist check stable
authorIdan Kamara <idankk86@gmail.com>
Fri, 27 May 2011 17:46:47 +0300
branchstable
changeset 955 85e0c572897f
parent 953 cf67cd5f6834
child 956 e39ab51937a2
run-tests: slightly simplify blacklist check [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Wed May 18 23:48:13 2011 +0200
+++ 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")