twister: print dut name when testing on hardware

When using the hardware map and testing on device, print out the name of
the dut (from the hardware map) on the script and report it in the json
output as well.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-08-17 16:42:42 -04:00 committed by Carles Cufí
commit b28b6a0687
4 changed files with 7 additions and 0 deletions

View file

@ -273,6 +273,8 @@ class Reporting:
suite['retries'] = instance.retries
if instance.dut:
suite["dut"] = instance.dut
if available_ram:
suite["available_ram"] = available_ram
if available_rom: