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 <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-09-05 17:11:00 +02:00 committed by Anas Nashif
commit 5a3c9c914a

View file

@ -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: