Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
f9ff4249
Commit
f9ff4249
authored
Jan 17, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa: fix '!' runner option to exclude specific tests of a test file
parent
bf173404
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
neo/scripts/runner.py
neo/scripts/runner.py
+2
-1
No files found.
neo/scripts/runner.py
View file @
f9ff4249
...
@@ -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(), ['
*
'])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment