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>
This commit is contained in:
Maciej Perkowski 2024-05-16 12:57:07 +02:00 committed by Alberto Escolar
parent 7a538c88cd
commit 7d3dc4e7e3

View File

@ -235,6 +235,8 @@ class BinaryHandler(Handler):
command = [self.generator_cmd, "run_renode_test"]
elif self.call_make_run:
command = [self.generator_cmd, "run"]
elif self.instance.testsuite.type == "unit":
command = [self.binary]
else:
binary = os.path.join(self.get_default_domain_build_dir(), "zephyr", "zephyr.exe")
command = [binary]