Skip to content

Commit 308454b

Browse files
author
Takashi Matsuo
committed
use different project for python 3.6 and 3.7
1 parent fd7412a commit 308454b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

monitoring/api/v3/alerts-client/test_config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
import os
1616

1717
# Temporary set BUILD_SPECIFIC_GCLOUD_PROJECT in this file.
18-
os.environ['BUILD_SPECIFIC_GCLOUD_PROJECT'] = 'tmatsuo-test'
18+
kokoro_job_name = os.environ.get('KOKORO_JOB_NAME')
19+
if 'python3.7' in: kokoro_job_name:
20+
os.environ['BUILD_SPECIFIC_GCLOUD_PROJECT'] = 'tmatsuo-test'
21+
else:
22+
os.environ['BUILD_SPECIFIC_GCLOUD_PROJECT'] = os.environ['GCLOUD_PROJECT']
1923

2024
# Default TEST_CONFIG_OVERRIDE for python repos.
2125

0 commit comments

Comments
 (0)