mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-28 17:25:05 +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
|
@ -1169,7 +1169,13 @@ class TestsManager(Loggable):
|
||||||
def _check_whitelisted(self, test):
|
def _check_whitelisted(self, test):
|
||||||
for pattern in self.wanted_tests_patterns:
|
for pattern in self.wanted_tests_patterns:
|
||||||
if pattern.findall(test.classname):
|
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 True
|
||||||
|
return False
|
||||||
|
|
||||||
def _is_test_wanted(self, test):
|
def _is_test_wanted(self, test):
|
||||||
if self._check_whitelisted(test):
|
if self._check_whitelisted(test):
|
||||||
|
|
Loading…
Reference in a new issue