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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
0dd49113
Commit
0dd49113
authored
Jan 25, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify calling bug tests with -T[number] option ('number' can be '*' to run all bug tests)
parent
fce63177
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
runtests.py
runtests.py
+10
-3
No files found.
runtests.py
View file @
0dd49113
...
@@ -505,6 +505,9 @@ if __name__ == '__main__':
...
@@ -505,6 +505,9 @@ if __name__ == '__main__':
parser
.
add_option
(
"-v"
,
"--verbose"
,
dest
=
"verbosity"
,
parser
.
add_option
(
"-v"
,
"--verbose"
,
dest
=
"verbosity"
,
action
=
"count"
,
default
=
0
,
action
=
"count"
,
default
=
0
,
help
=
"display test progress, pass twice to print test names"
)
help
=
"display test progress, pass twice to print test names"
)
parser
.
add_option
(
"-T"
,
"--ticket"
,
dest
=
"tickets"
,
action
=
"append"
,
help
=
"a bug ticket number to run the respective test in 'tests/bugs'"
)
options
,
cmd_args
=
parser
.
parse_args
()
options
,
cmd_args
=
parser
.
parse_args
()
...
@@ -557,6 +560,10 @@ if __name__ == '__main__':
...
@@ -557,6 +560,10 @@ if __name__ == '__main__':
sys
.
stderr
.
write
(
"
\
n
"
)
sys
.
stderr
.
write
(
"
\
n
"
)
test_bugs
=
False
test_bugs
=
False
for
ticket_number
in
options
.
tickets
:
test_bugs
=
True
cmd_args
.
append
(
'bugs.*T%s$'
%
ticket_number
)
if
not
test_bugs
:
for
selector
in
cmd_args
:
for
selector
in
cmd_args
:
if
selector
.
startswith
(
'bugs'
):
if
selector
.
startswith
(
'bugs'
):
test_bugs
=
True
test_bugs
=
True
...
...
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