aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_interop_tests.py
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-10-15 17:57:09 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-10-15 17:57:09 -0700
commitf565dfb46ada281acb7faffaa407d2904684cf57 (patch)
tree8a39edc466be14de31fffa90560761357988ef22 /tools/run_tests/run_interop_tests.py
parent22b6bed4835ebc044c6b7ce415ea4c62196dd9d6 (diff)
add check to see if file exists
Diffstat (limited to 'tools/run_tests/run_interop_tests.py')
-rwxr-xr-xtools/run_tests/run_interop_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py
index fe8050d1bc..cecb73de71 100755
--- a/tools/run_tests/run_interop_tests.py
+++ b/tools/run_tests/run_interop_tests.py
@@ -481,7 +481,7 @@ def build_interop_image_jobspec(language, tag=None):
# This env variable is used to get around the github rate limit
# error when running the PHP `composer install` command
# TODO(stanleycheung): find a more elegant way to do this
- if language.safename == 'php':
+ if language.safename == 'php' and os.path.exists('/var/local/.composer/auth.json'):
env['BUILD_INTEROP_DOCKER_EXTRA_ARGS'] = \
"-v /var/local/.composer/auth.json:/root/.composer/auth.json:ro"
build_job = jobset.JobSpec(