Skip to content

Commit

Permalink
contest: kunit: support [executor.init] config option
Browse files Browse the repository at this point in the history
Read the executor init from the config, so that we can force
the run on restart (kunit is a very quick runner, good for testing).

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Jun 7, 2024
1 parent bf87f3d commit fb68c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contest/remote/kunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
name=executor
group=test-group
test=test-name
init=force / continue / next
[remote]
branches=https://url-to-branches-manifest
[local]
Expand Down Expand Up @@ -196,7 +197,8 @@ def main() -> None:
url_path=config.get('www', 'url') + '/' + config.get('local', 'json_path'),
patches_path=config.get('local', 'patches_path', fallback=None),
life=life,
tree_path=config.get('local', 'tree_path'))
tree_path=config.get('local', 'tree_path'),
first_run=config.get('executor', 'init', fallback="continue"))
f.run()
life.exit()

Expand Down

0 comments on commit fb68c46

Please sign in to comment.