# HG changeset patch
# User Augie Fackler <au...@google.com>
# Date 1505794071 14400
#      Tue Sep 19 00:07:51 2017 -0400
# Node ID 55bb22a17fe82cb743d63f5a662a475333b85060
# Parent  3c053b1219603bfa7f6d4e51b7c1753d8f49a421
tests: fix test-is-whitelisted check in run-tests

Again, look for bytes in a set of bytes objects.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1853,7 +1853,7 @@ class TestSuite(unittest.TestSuite):
                 result.addSkip(test, "Doesn't exist")
                 continue
 
-            if not (self._whitelist and test.name in self._whitelist):
+            if not (self._whitelist and test.bname in self._whitelist):
                 if self._blacklist and test.bname in self._blacklist:
                     result.addSkip(test, 'blacklisted')
                     continue
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to