runner: intel_adsp: no need to specify host in --pty if no port assign

No need to specify host again in --pty when not specifying the port,
slightly reduce the input.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
This commit is contained in:
Enjia Mai
2022-08-04 09:26:19 +08:00
committed by Marti Bolivar
parent d935ec3a03
commit ad8f211729

View File

@@ -71,7 +71,7 @@ class IntelAdspBinaryRunner(ZephyrBinaryRunner):
help='the default basename of the key store in board.cmake')
parser.add_argument('--key',
help='specify where the signing key is')
parser.add_argument('--pty',
parser.add_argument('--pty', nargs='?', const="remote-host", type=str,
help=''''Capture the output of cavstool.py running on --remote-host \
and stream it remotely to west's standard output.''')
@@ -147,7 +147,10 @@ class IntelAdspBinaryRunner(ZephyrBinaryRunner):
#
# to get the result later separately.
if self.pty is not None:
self.log_cmd = ([f'{self.cavstool}','-s', f'{self.pty}', '-l'])
if self.pty == 'remote-host':
self.log_cmd = ([f'{self.cavstool}','-s', f'{self.remote_host}', '-l'])
else:
self.log_cmd = ([f'{self.cavstool}','-s', f'{self.pty}', '-l'])
self.logger.debug(f"rcmd: {self.log_cmd}")