aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_test/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/grpcio_test/commands.py')
-rw-r--r--src/python/grpcio_test/commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/grpcio_test/commands.py b/src/python/grpcio_test/commands.py
index 24d6241c43..c796d94c76 100644
--- a/src/python/grpcio_test/commands.py
+++ b/src/python/grpcio_test/commands.py
@@ -52,4 +52,6 @@ class RunTests(setuptools.Command):
# We import here to ensure that setup.py has had a chance to install the
# relevant package eggs first.
import pytest
- pytest.main(self.pytest_args)
+ result = pytest.main(self.pytest_args)
+ if result != 0:
+ raise SystemExit(result)