[PATCH 1 of 2] run-tests: slightly simplify blacklist check

Idan Kamara idankk86 at gmail.com
Fri May 27 09:47:54 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1306507607 -10800
# Node ID 8352979822dba8a7b2eb022d3ab3a13c4568fe86
# Parent  5b48ad1e7f1a0bb6e408993d50eb8959255834ea
run-tests: slightly simplify blacklist check

diff -r 5b48ad1e7f1a -r 8352979822db tests/run-tests.py
--- a/tests/run-tests.py	Thu May 26 17:15:35 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")


More information about the Mercurial-devel mailing list