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