Skip to content

Commit bb7d83c

Browse files
rickeylevcopybara-github
authored andcommitted
Use python3 in remote_helpers.sh
The new Mac images no longer have `python` (Python 2) Work towards #16526 PiperOrigin-RevId: 508136299 Change-Id: Ib4251081f79ac8deb48ce2f961527bb8de820b12
1 parent 66121a7 commit bb7d83c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/shell/bazel/remote_helpers.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function serve_file() {
2929
cd "${TEST_TMPDIR}"
3030
port_file=server-port.$$
3131
rm -f $port_file
32-
python $python_server always $file_name > $port_file &
32+
python3 $python_server always $file_name > $port_file &
3333
nc_pid=$!
3434
while ! grep started $port_file; do sleep 1; done
3535
nc_port=$(head -n 1 $port_file)
@@ -52,7 +52,7 @@ function serve_file_auth() {
5252
cd "${TEST_TMPDIR}"
5353
port_file=server-port.$$
5454
rm -f $port_file
55-
python $python_server auth $file_name > $port_file &
55+
python3 $python_server auth $file_name > $port_file &
5656
nc_pid=$!
5757
while ! grep started $port_file; do sleep 1; done
5858
nc_port=$(head -n 1 $port_file)
@@ -143,7 +143,7 @@ function serve_redirect() {
143143
# while loop below too early because of finding the string "started" in the
144144
# old file (and thus potentially even getting an outdated port information).
145145
rm -f $port_file
146-
python $python_server redirect $1 > $port_file &
146+
python3 $python_server redirect $1 > $port_file &
147147
redirect_pid=$!
148148
while ! grep started $port_file; do sleep 1; done
149149
redirect_port=$(head -n 1 $port_file)
@@ -158,7 +158,7 @@ function serve_not_found() {
158158
port_file=server-port.$$
159159
cd "${TEST_TMPDIR}"
160160
rm -f $port_file
161-
python $python_server 404 > $port_file &
161+
python3 $python_server 404 > $port_file &
162162
nc_pid=$!
163163
while ! grep started $port_file; do sleep 1; done
164164
nc_port=$(head -n 1 $port_file)
@@ -172,7 +172,7 @@ function serve_timeout() {
172172
port_file=server-port.$$
173173
cd "${TEST_TMPDIR}"
174174
rm -f $port_file
175-
python $python_server timeout > $port_file &
175+
python3 $python_server timeout > $port_file &
176176
nc_pid=$!
177177
while ! grep started $port_file; do sleep 1; done
178178
nc_port=$(head -n 1 $port_file)
@@ -232,7 +232,7 @@ function startup_server() {
232232
cd $fileserver_root
233233
port_file=server-port.$$
234234
rm -f $port_file
235-
python $python_server > $port_file &
235+
python3 $python_server > $port_file &
236236
fileserver_pid=$!
237237
while ! grep started $port_file; do sleep 1; done
238238
fileserver_port=$(head -n 1 $port_file)
@@ -243,7 +243,7 @@ function startup_server() {
243243
function startup_auth_server() {
244244
port_file=server-port.$$
245245
rm -f $port_file
246-
python $python_server auth > $port_file &
246+
python3 $python_server auth > $port_file &
247247
fileserver_pid=$!
248248
while ! grep started $port_file; do sleep 1; done
249249
fileserver_port=$(head -n 1 $port_file)

0 commit comments

Comments
 (0)