Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
7fd95d1a
Commit
7fd95d1a
authored
Mar 05, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support terminating the test runner without error return code even after test failures
parent
4718842f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
runtests.py
runtests.py
+7
-1
No files found.
runtests.py
View file @
7fd95d1a
...
...
@@ -727,6 +727,9 @@ if __name__ == '__main__':
help
=
"a bug ticket number to run the respective test in 'tests/*'"
)
parser
.
add_option
(
"--xml-output"
,
dest
=
"xml_output_dir"
,
metavar
=
"DIR"
,
help
=
"write test results in XML to directory DIR"
)
parser
.
add_option
(
"--exit-ok"
,
dest
=
"exit_ok"
,
default
=
False
,
action
=
"store_true"
,
help
=
"exit without error code even on test failures"
)
options
,
cmd_args
=
parser
.
parse_args
()
...
...
@@ -907,4 +910,7 @@ if __name__ == '__main__':
import
refnanny
sys
.
stderr
.
write
(
"
\
n
"
.
join
([
repr
(
x
)
for
x
in
refnanny
.
reflog
]))
if
options
.
exit_ok
:
sys
.
exit
(
0
)
else
:
sys
.
exit
(
not
result
.
wasSuccessful
())
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