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:
parent
362653d4b3
commit
5a3c9c914a
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue