Skip to content

Commit 7d3dc4e

Browse files
PerMacaescolar
authored andcommitted
twister: Fix path to binary location for unit_testing board
PR #72100 broke execution of unit type tests. This commit fixes it by bringing back the "old" logic for selecting a binary path for unit type tests. Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
1 parent 7a538c8 commit 7d3dc4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/pylib/twister/twisterlib/handlers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ def _create_command(self, robot_test):
235235
command = [self.generator_cmd, "run_renode_test"]
236236
elif self.call_make_run:
237237
command = [self.generator_cmd, "run"]
238+
elif self.instance.testsuite.type == "unit":
239+
command = [self.binary]
238240
else:
239241
binary = os.path.join(self.get_default_domain_build_dir(), "zephyr", "zephyr.exe")
240242
command = [binary]

0 commit comments

Comments
 (0)