Commit f9ff4249 authored by Julien Muchembled's avatar Julien Muchembled

qa: fix '!' runner option to exclude specific tests of a test file

parent bf173404
...@@ -139,7 +139,8 @@ class NeoTestRunner(unittest.TextTestResult): ...@@ -139,7 +139,8 @@ class NeoTestRunner(unittest.TextTestResult):
# load prefix if supplied # load prefix if supplied
if isinstance(test_module, tuple): if isinstance(test_module, tuple):
test_module, loader.testMethodPrefix = test_module test_module, loader.testMethodPrefix = test_module
if only and exclude == fnmatchcase(test_module, only): if only and not (exclude and test_only or
exclude != fnmatchcase(test_module, only)):
continue continue
try: try:
test_module = __import__(test_module, globals(), locals(), ['*']) test_module = __import__(test_module, globals(), locals(), ['*'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment