Patchwork [3,of,8] tests: fix test-is-whitelisted check in run-tests

login
register
mail settings
Submitter Augie Fackler
Date Sept. 19, 2017, 4:35 a.m.
Message ID <55bb22a17fe82cb743d6.1505795720@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/24008/
State Accepted
Headers show

Comments

Augie Fackler - Sept. 19, 2017, 4:35 a.m.
# HG changeset patch
# User Augie Fackler <augie@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.

Patch

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