Skip to content

Commit dd586c6

Browse files
PerMacrlubos
authored andcommitted
[nrf fromtree] 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> (cherry picked from commit 7d3dc4e)
1 parent 33c8345 commit dd586c6

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
@@ -250,6 +250,8 @@ def _create_command(self, robot_test):
250250
command = [self.generator_cmd, "run_renode_test"]
251251
elif self.call_make_run:
252252
command = [self.generator_cmd, "run"]
253+
elif self.instance.testsuite.type == "unit":
254+
command = [self.binary]
253255
else:
254256
binary = os.path.join(self.get_default_domain_build_dir(), "zephyr", "zephyr.exe")
255257
command = [binary]

0 commit comments

Comments
 (0)