choer(driver): consistent formatting of server flags

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-11-30 12:50:06 +01:00
parent 9ae8173a0b
commit 128ae59d72
1 changed files with 8 additions and 4 deletions

View File

@ -27,8 +27,9 @@ class SquishServer:
def start(cls):
cls.port = local_system.find_free_port(configs.squish.SERVER_PORT, 100)
cmd = [
f'"{cls.path}"',
'--configfile', str(cls.config),
str(cls.path),
'--verbose',
f'--configfile={cls.config}',
f'--host={cls.host}',
f'--port={cls.port}',
]
@ -51,8 +52,11 @@ class SquishServer:
# https://doc-snapshots.qt.io/squish/cli-squishserver.html
@classmethod
def configuring(cls, action: str, options: typing.Union[int, str, list]):
local_system.run(
[f'"{cls.path}"', '--configfile', str(cls.config), '--config', action, ' '.join(options)])
local_system.run([
str(cls.path),
f'--configfile={cls.config}',
f'--config={action}',
] + options)
@classmethod
def add_attachable_aut(cls, aut_id: str, port: int):