twister: passing a pty pararmeter to intel_adsp runner

Add a pty parameter from twister to intel_adsp when west-flash,
to tell the intel_adsp runner to change the way it outputs the
log.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
This commit is contained in:
Enjia Mai 2022-05-12 20:26:12 +08:00 committed by Carles Cufí
commit 2674c44a59

View file

@ -847,6 +847,8 @@ class DeviceHandler(Handler):
command.append("--tool-opt=-SelectEmuBySN %s" % (board_id))
elif runner == "stm32cubeprogrammer":
command.append("--tool-opt=sn=%s" % (board_id))
elif runner == "intel_adsp":
command.append("--pty")
# Receive parameters from an runner_params field
# of the specified hardware map file.