Lines Matching full:options

62 def main(options: argparse.Namespace, default_options: argparse.Namespace):
66 color_strip = False if options.force_color else None
74 options.no_clean
75 or options.only_failed
76 or options.test_only
77 or options.report_summary is not None
79 if os.path.exists(options.outdir):
81 elif options.last_metrics:
82 ls = os.path.join(options.outdir, "twister.json")
88 elif os.path.exists(options.outdir):
89 if options.clobber_output:
90 print(f"Deleting output directory {options.outdir}")
91 shutil.rmtree(options.outdir)
94 new_out = options.outdir + f".{i}"
97 shutil.move(options.outdir, new_out)
100 sys.exit(f"Too many '{options.outdir}.*' directories. Run either with --no-clean, "
104 os.makedirs(options.outdir, exist_ok=True)
105 if options.last_metrics and previous_results:
106 previous_results_file = os.path.join(options.outdir, "baseline.json")
110 setup_logging(options.outdir, options.log_file, options.log_level, options.timestamps)
112 env = TwisterEnv(options, default_options)
138 if options.verbose > 1:
146 if options.platform and not tplan.check_platform(i.platform, options.platform):
154 plan_file = os.path.join(options.outdir, "testplan.json")
158 if options.save_tests:
159 report.json_report(options.save_tests, env.version)
162 if options.report_summary is not None:
163 if options.report_summary < 0:
169 if options.device_testing and not options.build_only:
174 if options.dry_run:
179 if options.short_build_path:
197 if options.compare_report:
198 report_to_use = options.compare_report
199 elif options.last_metrics:
204 options.show_footprint,
205 options.all_deltas,
206 options.footprint_threshold,
207 options.last_metrics,
212 if options.verbose > 1:
215 report.summary(runner.results, options.disable_unrecognized_section_test, duration)
218 if options.coverage:
219 if not options.build_only:
220 coverage_completed = run_coverage(tplan, options)
224 if options.device_testing and not options.build_only:
228 options.report_name,
229 options.report_suffix,
230 options.report_dir,
231 options.no_update,
232 options.platform_reports,
237 if options.package_artifacts:
244 or (tplan.warnings and options.warnings_as_errors)
245 or (options.coverage and not coverage_completed)
247 if env.options.quit_on_failure: