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
31ee320b
Commit
31ee320b
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Plain Diff
Merge pull request #4054 from jtattermusch/port_server_cwd_elsewhere
Put cwd of port server elsewhere
parents
c8bd16b7
3bd08279
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/run_tests/port_server.py
+1
-1
1 addition, 1 deletion
tools/run_tests/port_server.py
tools/run_tests/run_tests.py
+8
-2
8 additions, 2 deletions
tools/run_tests/run_tests.py
with
9 additions
and
3 deletions
tools/run_tests/port_server.py
+
1
−
1
View file @
31ee320b
...
@@ -42,7 +42,7 @@ import time
...
@@ -42,7 +42,7 @@ import time
# increment this number whenever making a change to ensure that
# increment this number whenever making a change to ensure that
# the changes are picked up by running CI servers
# the changes are picked up by running CI servers
# note that all changes must be backwards compatible
# note that all changes must be backwards compatible
_MY_VERSION
=
5
_MY_VERSION
=
7
if
len
(
sys
.
argv
)
==
2
and
sys
.
argv
[
1
]
==
'
dump_version
'
:
if
len
(
sys
.
argv
)
==
2
and
sys
.
argv
[
1
]
==
'
dump_version
'
:
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/run_tests.py
+
8
−
2
View file @
31ee320b
...
@@ -744,7 +744,8 @@ def _start_port_server(port_server_port):
...
@@ -744,7 +744,8 @@ def _start_port_server(port_server_port):
running
=
False
running
=
False
if
running
:
if
running
:
current_version
=
int
(
subprocess
.
check_output
(
current_version
=
int
(
subprocess
.
check_output
(
[
sys
.
executable
,
'
tools/run_tests/port_server.py
'
,
'
dump_version
'
]))
[
sys
.
executable
,
os
.
path
.
abspath
(
'
tools/run_tests/port_server.py
'
),
'
dump_version
'
]))
print
'
my port server is version %d
'
%
current_version
print
'
my port server is version %d
'
%
current_version
running
=
(
version
>=
current_version
)
running
=
(
version
>=
current_version
)
if
not
running
:
if
not
running
:
...
@@ -755,13 +756,18 @@ def _start_port_server(port_server_port):
...
@@ -755,13 +756,18 @@ def _start_port_server(port_server_port):
fd
,
logfile
=
tempfile
.
mkstemp
()
fd
,
logfile
=
tempfile
.
mkstemp
()
os
.
close
(
fd
)
os
.
close
(
fd
)
print
'
starting port_server, with log file %s
'
%
logfile
print
'
starting port_server, with log file %s
'
%
logfile
args
=
[
sys
.
executable
,
'
tools/run_tests/port_server.py
'
,
'
-p
'
,
'
%d
'
%
port_server_port
,
'
-l
'
,
logfile
]
args
=
[
sys
.
executable
,
os
.
path
.
abspath
(
'
tools/run_tests/port_server.py
'
),
'
-p
'
,
'
%d
'
%
port_server_port
,
'
-l
'
,
logfile
]
env
=
dict
(
os
.
environ
)
env
=
dict
(
os
.
environ
)
env
[
'
BUILD_ID
'
]
=
'
pleaseDontKillMeJenkins
'
env
[
'
BUILD_ID
'
]
=
'
pleaseDontKillMeJenkins
'
if
platform
.
system
()
==
'
Windows
'
:
if
platform
.
system
()
==
'
Windows
'
:
# Working directory of port server needs to be outside of Jenkins
# workspace to prevent file lock issues.
tempdir
=
tempfile
.
mkdtemp
()
port_server
=
subprocess
.
Popen
(
port_server
=
subprocess
.
Popen
(
args
,
args
,
env
=
env
,
env
=
env
,
cwd
=
tempdir
,
creationflags
=
0x00000008
,
# detached process
creationflags
=
0x00000008
,
# detached process
close_fds
=
True
)
close_fds
=
True
)
else
:
else
:
...
...
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