Skip to content

Commit

Permalink
scripts: twister: handlers: Enable BinaryHandler to run sysbuilt tests
Browse files Browse the repository at this point in the history
Running sysbuilt tests fails because of missing "run" target.

This adds the default domain context to the command.

Signed-off-by: Wilfried Chauveau <[email protected]>
  • Loading branch information
ithinuel authored and mmahadevan108 committed Sep 17, 2024
1 parent bdd894c commit 6194159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/pylib/twister/twisterlib/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _create_command(self, robot_test):
"--variable", "RESC:@" + resc,
"--variable", "UART:" + uart]
elif self.call_make_run:
command = [self.generator_cmd, "run"]
command = [self.generator_cmd, "-C", self.get_default_domain_build_dir(), "run"]
elif self.instance.testsuite.type == "unit":
command = [self.binary]
else:
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/twister/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def wait(self, *args, **kwargs):
f'--suppressions={ZEPHYR_BASE}/scripts/valgrind.supp',
'--log-file=build_dir/valgrind.log', '--track-origins=yes',
'generator']),
(False, True, False, 123, None, ['generator', 'run', '--seed=123']),
(False, True, False, 123, None, ['generator', '-C', 'build_dir', 'run', '--seed=123']),
(False, False, False, None, ['ex1', 'ex2'], ['build_dir/zephyr/zephyr.exe', 'ex1', 'ex2']),
]

Expand Down

0 comments on commit 6194159

Please sign in to comment.