Exit 1 if some tests fail.

pull/11876/head
Adele Zhou 7 years ago
parent a2f0e19725
commit 4a8ecf047c
  1. 5
      tools/run_tests/run_interop_tests.py

@ -1230,6 +1230,11 @@ try:
_HTTP2_TEST_CASES, http2_server_test_cases, resultset, num_failures, _HTTP2_TEST_CASES, http2_server_test_cases, resultset, num_failures,
args.cloud_to_prod_auth or args.cloud_to_prod, args.prod_servers, args.cloud_to_prod_auth or args.cloud_to_prod, args.prod_servers,
args.http2_interop) args.http2_interop)
if num_failures:
sys.exit(1)
else:
sys.exit(0)
except Exception as e: except Exception as e:
print('exception occurred:') print('exception occurred:')
traceback.print_exc(file=sys.stdout) traceback.print_exc(file=sys.stdout)

Loading…
Cancel
Save