Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
803af15b
Commit
803af15b
authored
9 years ago
by
Adele Zhou
Browse files
Options
Downloads
Patches
Plain Diff
Run code coverage no matter if tests failed or succeeded.
parent
73081d15
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_tests/run_tests.py
+4
-5
4 additions, 5 deletions
tools/run_tests/run_tests.py
with
4 additions
and
5 deletions
tools/run_tests/run_tests.py
+
4
−
5
View file @
803af15b
...
@@ -862,6 +862,7 @@ def _build_and_run(
...
@@ -862,6 +862,7 @@ def _build_and_run(
port_server_port
=
32767
port_server_port
=
32767
_start_port_server
(
port_server_port
)
_start_port_server
(
port_server_port
)
resultset
=
None
resultset
=
None
num_test_failures
=
0
try
:
try
:
infinite_runs
=
runs_per_test
==
0
infinite_runs
=
runs_per_test
==
0
one_run
=
set
(
one_run
=
set
(
...
@@ -885,7 +886,7 @@ def _build_and_run(
...
@@ -885,7 +886,7 @@ def _build_and_run(
else
itertools
.
repeat
(
massaged_one_run
,
runs_per_test
))
else
itertools
.
repeat
(
massaged_one_run
,
runs_per_test
))
all_runs
=
itertools
.
chain
.
from_iterable
(
runs_sequence
)
all_runs
=
itertools
.
chain
.
from_iterable
(
runs_sequence
)
num
ber
_failures
,
resultset
=
jobset
.
run
(
num
_test
_failures
,
resultset
=
jobset
.
run
(
all_runs
,
check_cancelled
,
newline_on_success
=
newline_on_success
,
all_runs
,
check_cancelled
,
newline_on_success
=
newline_on_success
,
travis
=
args
.
travis
,
infinite_runs
=
infinite_runs
,
maxjobs
=
args
.
jobs
,
travis
=
args
.
travis
,
infinite_runs
=
infinite_runs
,
maxjobs
=
args
.
jobs
,
stop_on_failure
=
args
.
stop_on_failure
,
stop_on_failure
=
args
.
stop_on_failure
,
...
@@ -902,8 +903,6 @@ def _build_and_run(
...
@@ -902,8 +903,6 @@ def _build_and_run(
do_newline
=
True
)
do_newline
=
True
)
else
:
else
:
jobset
.
message
(
'
PASSED
'
,
k
,
do_newline
=
True
)
jobset
.
message
(
'
PASSED
'
,
k
,
do_newline
=
True
)
if
number_failures
:
return
2
finally
:
finally
:
for
antagonist
in
antagonists
:
for
antagonist
in
antagonists
:
antagonist
.
kill
()
antagonist
.
kill
()
...
@@ -913,8 +912,8 @@ def _build_and_run(
...
@@ -913,8 +912,8 @@ def _build_and_run(
number_failures
,
_
=
jobset
.
run
(
number_failures
,
_
=
jobset
.
run
(
post_tests_steps
,
maxjobs
=
1
,
stop_on_failure
=
True
,
post_tests_steps
,
maxjobs
=
1
,
stop_on_failure
=
True
,
newline_on_success
=
newline_on_success
,
travis
=
args
.
travis
)
newline_on_success
=
newline_on_success
,
travis
=
args
.
travis
)
if
number_failures
:
if
num_test_failures
or
number_failures
:
return
3
return
2
if
cache
:
cache
.
save
()
if
cache
:
cache
.
save
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment