From 7d3dc4e7e377746ce752390082e634120b7edb8e Mon Sep 17 00:00:00 2001 From: Maciej Perkowski Date: Thu, 16 May 2024 12:57:07 +0200 Subject: [PATCH] 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 --- scripts/pylib/twister/twisterlib/handlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/pylib/twister/twisterlib/handlers.py b/scripts/pylib/twister/twisterlib/handlers.py index b8007849eb5..16cec58be2f 100755 --- a/scripts/pylib/twister/twisterlib/handlers.py +++ b/scripts/pylib/twister/twisterlib/handlers.py @@ -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]