diff options
author | 2017-07-20 16:28:32 -0700 | |
---|---|---|
committer | 2017-07-24 10:55:53 -0700 | |
commit | 4a8ecf047ca96bf692369ca0f942983fab0a0a06 (patch) | |
tree | e4bec841965b17c35f57c730bb408852d78a7263 /tools/run_tests/run_interop_tests.py | |
parent | a2f0e197256ab586394d843f19ff49d36df8f723 (diff) |
Exit 1 if some tests fail.
Diffstat (limited to 'tools/run_tests/run_interop_tests.py')
-rwxr-xr-x | tools/run_tests/run_interop_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py index 1e702a8636..bde9115985 100755 --- a/tools/run_tests/run_interop_tests.py +++ b/tools/run_tests/run_interop_tests.py @@ -1230,6 +1230,11 @@ try: _HTTP2_TEST_CASES, http2_server_test_cases, resultset, num_failures, args.cloud_to_prod_auth or args.cloud_to_prod, args.prod_servers, args.http2_interop) + + if num_failures: + sys.exit(1) + else: + sys.exit(0) except Exception as e: print('exception occurred:') traceback.print_exc(file=sys.stdout) |