From fb68c46012e06e0024a67b97ca1a2c841967ef63 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Fri, 7 Jun 2024 12:48:20 -0700 Subject: [PATCH] contest: kunit: support [executor.init] config option 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 --- contest/remote/kunit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contest/remote/kunit.py b/contest/remote/kunit.py index 5e39b04..feb2216 100755 --- a/contest/remote/kunit.py +++ b/contest/remote/kunit.py @@ -18,6 +18,7 @@ name=executor group=test-group test=test-name +init=force / continue / next [remote] branches=https://url-to-branches-manifest [local] @@ -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()