From 5a3c9c914a621ca97b97a086ec846e33b2a27555 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Thu, 5 Sep 2024 17:11:00 +0200 Subject: [PATCH] scripts: pylib: twister: Write version to testplan.json The twister environment version is already set, write it to the testplan.json file. Signed-off-by: Pieter De Gendt --- scripts/pylib/twister/twisterlib/twister_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pylib/twister/twisterlib/twister_main.py b/scripts/pylib/twister/twisterlib/twister_main.py index b813713a1ce..5040ec5e972 100644 --- a/scripts/pylib/twister/twisterlib/twister_main.py +++ b/scripts/pylib/twister/twisterlib/twister_main.py @@ -158,10 +158,10 @@ def main(options, default_options): report = Reporting(tplan, env) plan_file = os.path.join(options.outdir, "testplan.json") if not os.path.exists(plan_file): - report.json_report(plan_file) + report.json_report(plan_file, env.version) if options.save_tests: - report.json_report(options.save_tests) + report.json_report(options.save_tests, env.version) return 0 if options.report_summary is not None: