mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
validate: Whitlist blacklisted test only when explicitely
Otherwise running -t '.*reverse.*' will also run blacklisted tests which is probably not what use wants.
This commit is contained in:
parent
5fc11cf389
commit
d013e26cbc
1 changed files with 6 additions and 0 deletions
|
@ -1169,7 +1169,13 @@ class TestsManager(Loggable):
|
|||
def _check_whitelisted(self, test):
|
||||
for pattern in self.wanted_tests_patterns:
|
||||
if pattern.findall(test.classname):
|
||||
if self._check_blacklisted(test):
|
||||
# If explicitly white listed that specific test
|
||||
# bypass the blacklisting
|
||||
if pattern.pattern != test.classname:
|
||||
return False
|
||||
return True
|
||||
return False
|
||||
|
||||
def _is_test_wanted(self, test):
|
||||
if self._check_whitelisted(test):
|
||||
|
|
Loading…
Reference in a new issue