Commit e84b5506 authored by Moul's avatar Moul
Browse files

[fix] #42: add missing '-p' option.

parent 0c68ceb8
......@@ -76,7 +76,10 @@ class EndPoint(object):
def __init__(self):
cli_args = Command()
ep = dict()
ep["domain"], ep["port"] = G1_TEST_DEFAULT_ENDPOINT if cli_args.contains_switches("gtest") else G1_DEFAULT_ENDPOINT
if cli_args.contains_switches('p'):
ep["domain"], ep["port"] = cli_args.get_definition('p').rsplit(':', 1)
else:
ep["domain"], ep["port"] = G1_TEST_DEFAULT_ENDPOINT if cli_args.contains_switches("gtest") else G1_DEFAULT_ENDPOINT
self.ep = ep
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment