Skip to content

Commit

Permalink
[CI] Add a second instance of the configured applications such that Y…
Browse files Browse the repository at this point in the history
…AML can start the app multiple times if needed
  • Loading branch information
vivien-apple committed Feb 2, 2024
1 parent 5824d93 commit f41b5ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/tests/chiptest/test_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,12 @@ def Run(self, runner, apps_register, paths: ApplicationPaths, pics_file: str,
# so it will be commissionable again.
app.factoryReset()

tool_cmd = paths.chip_tool if test_runtime != TestRunTime.CHIP_TOOL_PYTHON else paths.chip_tool_with_python_cmd
# It may sometimes be useful to run the same app multiple times depending
# on the implementation. So this code creates a duplicate entry but with a different
# key.
app = App(runner, path)
apps_register.add(f'{key}#2', app)
app.factoryReset()

if dry_run:
tool_storage_dir = None
Expand Down

0 comments on commit f41b5ae

Please sign in to comment.