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 cbbb006 commit 67504b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/tests/chiptest/test_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,13 @@ def Run(self, runner, apps_register, paths: ApplicationPaths, pics_file: str,
# so it will be commissionable again.
app.factoryReset()

# 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()

tool_cmd = paths.chip_tool if test_runtime != TestRunTime.CHIP_TOOL_PYTHON else paths.chip_tool_with_python_cmd

if dry_run:
Expand Down

0 comments on commit 67504b1

Please sign in to comment.