twister: run as device, even if simulation is supported
Some hardware boards are supported in qemu as simulation platforms. If we are testing with the real hardware, make sure we treat this as a device and not as a simulator. First priority when initializing a handler is to check if device testing is requested, then we can handle the rest without --device-testing. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a9b3d93550
commit
fef2bb0866
1 changed files with 5 additions and 5 deletions
|
@ -139,7 +139,11 @@ class TestInstance:
|
|||
|
||||
options = env.options
|
||||
handler = Handler(self, "")
|
||||
if self.platform.simulation != "na":
|
||||
if options.device_testing:
|
||||
handler = DeviceHandler(self, "device")
|
||||
handler.call_make_run = False
|
||||
handler.ready = True
|
||||
elif self.platform.simulation != "na":
|
||||
if self.platform.simulation == "qemu":
|
||||
handler = QEMUHandler(self, "qemu")
|
||||
handler.args.append(f"QEMU_PIPE={handler.get_fifo()}")
|
||||
|
@ -156,10 +160,6 @@ class TestInstance:
|
|||
handler.args.append("COVERAGE=1")
|
||||
handler.call_make_run = False
|
||||
handler.ready = True
|
||||
elif options.device_testing:
|
||||
handler = DeviceHandler(self, "device")
|
||||
handler.call_make_run = False
|
||||
handler.ready = True
|
||||
|
||||
if handler:
|
||||
handler.options = options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue