aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_interop_tests.py
diff options
context:
space:
mode:
authorGravatar Adele Zhou <adelez@google.com>2017-07-20 16:28:32 -0700
committerGravatar Adele Zhou <adelez@google.com>2017-07-24 10:55:53 -0700
commit4a8ecf047ca96bf692369ca0f942983fab0a0a06 (patch)
treee4bec841965b17c35f57c730bb408852d78a7263 /tools/run_tests/run_interop_tests.py
parenta2f0e197256ab586394d843f19ff49d36df8f723 (diff)
Exit 1 if some tests fail.
Diffstat (limited to 'tools/run_tests/run_interop_tests.py')
-rwxr-xr-xtools/run_tests/run_interop_tests.py5
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)