Skip to content

Commit

Permalink
tests: update target to handle optional config
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Jul 24, 2020
1 parent 008f697 commit c0fc816
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/integration/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ def command_args(self) -> List[str]:
f":{self.port}",
"-notls",
"-logtostderr",
"-username",
self.username,
"-password",
self.password,
*self.options,
]

if self.username:
args.append("-username")
args.append(self.username)

if self.password:
args.append("-password")
args.append(self.password)

if self.file:
args.append("-config")
args.append(self.file.as_posix())
Expand Down

0 comments on commit c0fc816

Please sign in to comment.