Skip to content

Commit 1069f57

Browse files
Dat-NguyenDuynashif
authored andcommitted
twister: fix issue twister with --device-testing on Windows
There is an incorrect logic that causes twister with --device-testing to skip all tests on Windows. Correct the logical condition. Signed-off-by: Dat Nguyen Duy <[email protected]>
1 parent 60a4327 commit 1069f57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/pylib/twister/twisterlib/testinstance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ def check_runnable(self,
264264
simulation = options.sim_name
265265

266266
simulator = self.platform.simulator_by_name(simulation)
267-
if os.name == 'nt':
267+
if os.name == 'nt' and simulator:
268268
# running on simulators is currently supported only for QEMU on Windows
269-
if (not simulator) or simulator.name not in ('na', 'qemu'):
269+
if simulator.name not in ('na', 'qemu'):
270270
return False
271271

272272
# check presence of QEMU on Windows

0 commit comments

Comments
 (0)