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
5bcc5572
Commit
5bcc5572
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Plain Diff
Merge pull request #2976 from yang-g/only_run_tests_for_those_with_binaries
Only run built binaries
parents
86395e5c
6c1fdc6c
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
+10
-7
10 additions, 7 deletions
tools/run_tests/run_tests.py
with
10 additions
and
7 deletions
tools/run_tests/run_tests.py
+
10
−
7
View file @
5bcc5572
...
...
@@ -143,7 +143,10 @@ class CLanguage(object):
binary
=
'
vsprojects/test_bin/%s.exe
'
%
(
target
[
'
name
'
])
else
:
binary
=
'
bins/%s/%s
'
%
(
config
.
build_config
,
target
[
'
name
'
])
out
.
append
(
config
.
job_spec
([
binary
],
[
binary
]))
if
os
.
path
.
isfile
(
binary
):
out
.
append
(
config
.
job_spec
([
binary
],
[
binary
]))
else
:
print
"
\n
WARNING: binary not found, skipping
"
,
binary
return
sorted
(
out
)
def
make_targets
(
self
):
...
...
@@ -482,12 +485,6 @@ build_steps.extend(set(
for
cfg
in
build_configs
for
l
in
languages
for
cmdline
in
l
.
build_steps
()))
one_run
=
set
(
spec
for
config
in
run_configs
for
language
in
languages
for
spec
in
language
.
test_specs
(
config
,
args
.
travis
)
if
re
.
search
(
args
.
regex
,
spec
.
shortname
))
runs_per_test
=
args
.
runs_per_test
forever
=
args
.
forever
...
...
@@ -583,6 +580,12 @@ def _build_and_run(
_start_port_server
(
port_server_port
)
try
:
infinite_runs
=
runs_per_test
==
0
one_run
=
set
(
spec
for
config
in
run_configs
for
language
in
languages
for
spec
in
language
.
test_specs
(
config
,
args
.
travis
)
if
re
.
search
(
args
.
regex
,
spec
.
shortname
))
# When running on travis, we want out test runs to be as similar as possible
# for reproducibility purposes.
if
travis
:
...
...
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