Merge pull request #24163 from murgatroid99/run_xds_tests_clients_bash

In run_xds_tests.py, run clients in bash
pull/24192/head
Michael Lumish 4 years ago committed by GitHub
commit 9673bc9988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      tools/run_tests/run_xds_tests.py

@ -21,7 +21,6 @@ import json
import logging
import os
import random
import shlex
import socket
import subprocess
import sys
@ -1800,12 +1799,13 @@ try:
rpcs_to_send=rpcs_to_send,
metadata_to_send=metadata_to_send)
logger.debug('running client: %s', client_cmd_formatted)
client_cmd = shlex.split(client_cmd_formatted)
try:
client_process = subprocess.Popen(client_cmd,
env=client_env,
stderr=subprocess.STDOUT,
stdout=test_log_file)
# We invoke the client using bash to avoid https://github.com/nvm-sh/nvm/issues/1866
client_process = subprocess.Popen(
['/bin/bash', '-i', '-c', client_cmd_formatted],
env=client_env,
stderr=subprocess.STDOUT,
stdout=test_log_file)
if test_case == 'backends_restart':
test_backends_restart(gcp, backend_service, instance_group)
elif test_case == 'change_backend_service':

Loading…
Cancel
Save