diff options
author | 2018-08-28 13:58:00 -0700 | |
---|---|---|
committer | 2018-08-28 13:58:00 -0700 | |
commit | 60b6f2df20d490107c17eca1c8a2cccecfd97119 (patch) | |
tree | c10378129f681d544e6cb74c381778a786906f7f /src/python/grpcio_tests/commands.py | |
parent | d69fdefcfa564ec60dba1d77483d62c8315ae2f3 (diff) | |
parent | ee65a5eaee45a765d1d4176a797bb8288faeb180 (diff) |
Merge branch 'master' into minor-timer-fix
Diffstat (limited to 'src/python/grpcio_tests/commands.py')
-rw-r--r-- | src/python/grpcio_tests/commands.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/commands.py b/src/python/grpcio_tests/commands.py index a23c980017..0dfbf3180b 100644 --- a/src/python/grpcio_tests/commands.py +++ b/src/python/grpcio_tests/commands.py @@ -202,3 +202,28 @@ class RunInterop(test.test): from tests.interop import client sys.argv[1:] = self.args.split() client.test_interoperability() + + +class RunFork(test.test): + + description = 'run fork test client' + user_options = [('args=', 'a', 'pass-thru arguments for the client')] + + def initialize_options(self): + self.args = '' + + def finalize_options(self): + # distutils requires this override. + pass + + def run(self): + if self.distribution.install_requires: + self.distribution.fetch_build_eggs( + self.distribution.install_requires) + if self.distribution.tests_require: + self.distribution.fetch_build_eggs(self.distribution.tests_require) + # We import here to ensure that our setuptools parent has had a chance to + # edit the Python system path. + from tests.fork import client + sys.argv[1:] = self.args.split() + client.test_fork() |