twister: do not modify testplan on subsequent runs
Do not modify testplan.json if it already exists. Testplan is only created once and any work in the same worskpace should not change it. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a2fbb783dd
commit
a0c3bdafbf
1 changed files with 3 additions and 1 deletions
|
@ -332,7 +332,9 @@ def main():
|
|||
return 0
|
||||
|
||||
report = Reporting(tplan, env)
|
||||
report.json_report(os.path.join(options.outdir, "testplan.json"))
|
||||
plan_file = os.path.join(options.outdir, "testplan.json")
|
||||
if not os.path.exists(plan_file):
|
||||
report.json_report(plan_file)
|
||||
|
||||
if options.save_tests:
|
||||
report.json_report(options.save_tests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue