Use tox commands to run interop client/server

pull/4457/head
Masood Malekghassemi 9 years ago
parent 0467295ee6
commit ccc1610b95
  1. 14
      tools/run_tests/run_interop_tests.py
  2. 8
      tox.ini

@ -298,11 +298,8 @@ class PythonLanguage:
def client_cmd(self, args):
return [
'.tox/py27/bin/python',
'setup.py',
'run_interop',
'--client',
'--args=\'{}\''.format(' '.join(args))
'tox -einterop_client --',
' '.join(args)
]
def cloud_to_prod_env(self):
@ -310,11 +307,8 @@ class PythonLanguage:
def server_cmd(self, args):
return [
'.tox/py27/bin/python',
'setup.py',
'run_interop',
'--server',
'--args=\'{}\''.format(' '.join(args) + ' --use_tls=true')
'tox -einterop_server --',
' '.join(args) + ' --use_tls=true'
]
def global_env(self):

@ -16,3 +16,11 @@ commands =
deps =
-rrequirements.txt
passenv = *
[testenv:interop_client]
commands =
{envpython} setup.py run_interop --client --args='{posargs}'
[testenv:interop_server]
commands =
{envpython} setup.py run_interop --server --args='{posargs}'

Loading…
Cancel
Save