Fix exception in setup phase handling (#26710)

* Fix exception in setup phase handling

* Correct the fix method
pull/26715/head
Lidi Zheng 3 years ago committed by GitHub
parent 3545d8e74f
commit 72702c2174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/run_tests/run_xds_tests.py

@ -3102,6 +3102,8 @@ else:
if not args.only_stable_gcp_apis: if not args.only_stable_gcp_apis:
alpha_compute = googleapiclient.discovery.build('compute', 'alpha') alpha_compute = googleapiclient.discovery.build('compute', 'alpha')
test_results = {}
failed_tests = []
try: try:
gcp = GcpState(compute, alpha_compute, args.project_id, args.project_num) gcp = GcpState(compute, alpha_compute, args.project_id, args.project_num)
gcp_suffix = args.gcp_suffix gcp_suffix = args.gcp_suffix
@ -3220,8 +3222,6 @@ try:
client_env['GRPC_XDS_EXPERIMENTAL_CIRCUIT_BREAKING'] = 'true' client_env['GRPC_XDS_EXPERIMENTAL_CIRCUIT_BREAKING'] = 'true'
client_env['GRPC_XDS_EXPERIMENTAL_ENABLE_TIMEOUT'] = 'true' client_env['GRPC_XDS_EXPERIMENTAL_ENABLE_TIMEOUT'] = 'true'
client_env['GRPC_XDS_EXPERIMENTAL_FAULT_INJECTION'] = 'true' client_env['GRPC_XDS_EXPERIMENTAL_FAULT_INJECTION'] = 'true'
test_results = {}
failed_tests = []
for test_case in args.test_case: for test_case in args.test_case:
if test_case in _V3_TEST_CASES and not args.xds_v3_support: if test_case in _V3_TEST_CASES and not args.xds_v3_support:
logger.info('skipping test %s due to missing v3 support', logger.info('skipping test %s due to missing v3 support',

Loading…
Cancel
Save