Skip to content

Commit

Permalink
Use tox commands to run interop client/server
Browse files Browse the repository at this point in the history
  • Loading branch information
soltanmm committed Jan 7, 2016
1 parent 0467295 commit ccc1610
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tools/run_tests/run_interop_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,23 +298,17 @@ def __init__(self):

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):
return {}

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):
Expand Down
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}'

0 comments on commit ccc1610

Please sign in to comment.