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
8ae409f5
Commit
8ae409f5
authored
9 years ago
by
murgatroid99
Browse files
Options
Downloads
Patches
Plain Diff
Prevent run_tests.py from running make if the language has no make targets
parent
c0f656a5
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
+12
-9
12 additions, 9 deletions
tools/run_tests/run_tests.py
with
12 additions
and
9 deletions
tools/run_tests/run_tests.py
+
12
−
9
View file @
8ae409f5
...
...
@@ -637,13 +637,16 @@ if platform.system() == 'Windows':
for
target
in
targets
]
else
:
def
make_jobspec
(
cfg
,
targets
,
makefile
=
'
Makefile
'
):
return
[
jobset
.
JobSpec
([
os
.
getenv
(
'
MAKE
'
,
'
make
'
),
'
-f
'
,
makefile
,
'
-j
'
,
'
%d
'
%
(
multiprocessing
.
cpu_count
()
+
1
),
'
EXTRA_DEFINES=GRPC_TEST_SLOWDOWN_MACHINE_FACTOR=%f
'
%
args
.
slowdown
,
'
CONFIG=%s
'
%
cfg
]
+
targets
,
timeout_seconds
=
30
*
60
)]
if
targets
:
return
[
jobset
.
JobSpec
([
os
.
getenv
(
'
MAKE
'
,
'
make
'
),
'
-f
'
,
makefile
,
'
-j
'
,
'
%d
'
%
(
multiprocessing
.
cpu_count
()
+
1
),
'
EXTRA_DEFINES=GRPC_TEST_SLOWDOWN_MACHINE_FACTOR=%f
'
%
args
.
slowdown
,
'
CONFIG=%s
'
%
cfg
]
+
targets
,
timeout_seconds
=
30
*
60
)]
else
:
return
[]
make_targets
=
{}
for
l
in
languages
:
makefile
=
l
.
makefile_name
()
...
...
@@ -840,9 +843,9 @@ def _build_and_run(
testsuite
=
ET
.
SubElement
(
root
,
'
testsuite
'
,
id
=
'
1
'
,
package
=
'
grpc
'
,
name
=
'
tests
'
)
if
xml_report
else
None
number_failures
,
_
=
jobset
.
run
(
all_runs
,
check_cancelled
,
newline_on_success
=
newline_on_success
,
all_runs
,
check_cancelled
,
newline_on_success
=
newline_on_success
,
travis
=
travis
,
infinite_runs
=
infinite_runs
,
maxjobs
=
args
.
jobs
,
stop_on_failure
=
args
.
stop_on_failure
,
stop_on_failure
=
args
.
stop_on_failure
,
cache
=
cache
if
not
xml_report
else
None
,
xml_report
=
testsuite
,
add_env
=
{
'
GRPC_TEST_PORT_SERVER
'
:
'
localhost:%d
'
%
port_server_port
})
...
...
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