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
075821f7
Commit
075821f7
authored
9 years ago
by
Nicolas Noble
Browse files
Options
Downloads
Plain Diff
Merge pull request #3614 from dgquintas/port_server_python_version
Small changes to tools/ Python scripts
parents
27155937
985f22e4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/buildgen/generate_projects.py
+3
-2
3 additions, 2 deletions
tools/buildgen/generate_projects.py
tools/run_tests/run_tests.py
+1
-1
1 addition, 1 deletion
tools/run_tests/run_tests.py
with
4 additions
and
3 deletions
tools/buildgen/generate_projects.py
+
3
−
2
View file @
075821f7
...
@@ -34,6 +34,7 @@ import os
...
@@ -34,6 +34,7 @@ import os
import
shutil
import
shutil
import
sys
import
sys
import
tempfile
import
tempfile
import
multiprocessing
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'
..
'
,
'
run_tests
'
))
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'
..
'
,
'
run_tests
'
))
assert
sys
.
argv
[
1
:],
'
run generate_projects.sh instead of this directly
'
assert
sys
.
argv
[
1
:],
'
run generate_projects.sh instead of this directly
'
...
@@ -55,7 +56,7 @@ for root, dirs, files in os.walk('templates'):
...
@@ -55,7 +56,7 @@ for root, dirs, files in os.walk('templates'):
out
=
out_dir
+
'
/
'
+
os
.
path
.
splitext
(
f
)[
0
]
out
=
out_dir
+
'
/
'
+
os
.
path
.
splitext
(
f
)[
0
]
if
not
os
.
path
.
exists
(
out_dir
):
if
not
os
.
path
.
exists
(
out_dir
):
os
.
makedirs
(
out_dir
)
os
.
makedirs
(
out_dir
)
cmd
=
[
'
python
'
,
'
tools/buildgen/mako_renderer.py
'
]
cmd
=
[
'
python
2.7
'
,
'
tools/buildgen/mako_renderer.py
'
]
for
plugin
in
plugins
:
for
plugin
in
plugins
:
cmd
.
append
(
'
-p
'
)
cmd
.
append
(
'
-p
'
)
cmd
.
append
(
plugin
)
cmd
.
append
(
plugin
)
...
@@ -73,7 +74,7 @@ for root, dirs, files in os.walk('templates'):
...
@@ -73,7 +74,7 @@ for root, dirs, files in os.walk('templates'):
cmd
.
append
(
root
+
'
/
'
+
f
)
cmd
.
append
(
root
+
'
/
'
+
f
)
jobs
.
append
(
jobset
.
JobSpec
(
cmd
,
shortname
=
out
))
jobs
.
append
(
jobset
.
JobSpec
(
cmd
,
shortname
=
out
))
jobset
.
run
(
jobs
)
jobset
.
run
(
jobs
,
maxjobs
=
multiprocessing
.
cpu_count
()
)
if
test
is
not
None
:
if
test
is
not
None
:
for
s
,
g
in
test
.
iteritems
():
for
s
,
g
in
test
.
iteritems
():
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/run_tests.py
+
1
−
1
View file @
075821f7
...
@@ -728,7 +728,7 @@ def _start_port_server(port_server_port):
...
@@ -728,7 +728,7 @@ def _start_port_server(port_server_port):
if
not
running
:
if
not
running
:
port_log
=
open
(
'
portlog.txt
'
,
'
w
'
)
port_log
=
open
(
'
portlog.txt
'
,
'
w
'
)
port_server
=
subprocess
.
Popen
(
port_server
=
subprocess
.
Popen
(
[
'
python
'
,
'
tools/run_tests/port_server.py
'
,
'
-p
'
,
'
%d
'
%
port_server_port
],
[
'
python
2.7
'
,
'
tools/run_tests/port_server.py
'
,
'
-p
'
,
'
%d
'
%
port_server_port
],
stderr
=
subprocess
.
STDOUT
,
stderr
=
subprocess
.
STDOUT
,
stdout
=
port_log
)
stdout
=
port_log
)
# ensure port server is up
# ensure port server is up
...
...
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