Lines Matching full:options

368              "Valid options for 'gcovr' tool are: " +
370 " Valid options for 'lcov' tool are: " +
516 help="Ignore all other command line options and just produce a report to "
701 "--report-all-options", action="store_true",
702 help="""Show all command line options applied, including defaults, as
703 environment.options object in twister.json. Default: show only non-default settings.
847 options = None, argument
850 if options is None:
851 options = parser.parse_args(args)
854 if options.short_build_path and not options.ninja:
858 if options.device_serial_pty and os.name == "nt": # OS is Windows
862 if options.west_runner and options.west_flash is None:
866 if options.west_flash and not options.device_testing:
870 if not options.testsuite_root:
874 if options.test:
875 for scenario in options.test:
877 options.testsuite_root.append(dirname)
880 if not options.testsuite_root:
881 options.testsuite_root = [os.path.join(ZEPHYR_BASE, "tests"),
884 if options.last_metrics or options.compare_report:
885 options.enable_size_report = True
887 if options.footprint_report:
888 options.create_rom_ram_report = True
890 if options.aggressive_no_clean:
891 options.no_clean = True
893 if options.coverage:
894 options.enable_coverage = True
896 if options.enable_coverage and not options.coverage_platform:
897 options.coverage_platform = options.platform
899 if options.coverage_formats:
900 for coverage_format in options.coverage_formats.split(','):
901 if coverage_format not in supported_coverage_formats[options.coverage_tool]:
902 logger.error(f"Unsupported coverage report formats:'{options.coverage_formats}' "
903 f"for {options.coverage_tool}")
906 if options.enable_valgrind and not shutil.which("valgrind"):
911 (not options.device_testing)
912 and (options.device_serial or options.device_serial_pty or options.hardware_map)
920 options.device_testing
921 and (options.device_serial or options.device_serial_pty) and len(options.platform) != 1
928 if options.device_flash_with_test and not options.device_testing:
932 if options.flash_before and options.device_flash_with_test:
936 if options.flash_before and options.device_serial_pty:
940 if options.shuffle_tests and options.subset is None:
944 if options.shuffle_tests_seed and options.shuffle_tests is None:
948 if options.size:
950 for fn in options.size:
955 if options.footprint_from_buildlog:
959 if not options.enable_size_report:
963 if len(options.extra_test_args) > 0:
969 if options.extra_test_args[0] != "--":
971 double_dash = options.extra_test_args.index("--")
973 double_dash = len(options.extra_test_args)
974 unrecognized = " ".join(options.extra_test_args[0:double_dash])
984 options.extra_test_args = options.extra_test_args[1:]
986 if on_init and not options.allow_installed_plugin and PYTEST_PLUGIN_INSTALLED:
992 elif on_init and options.allow_installed_plugin and PYTEST_PLUGIN_INSTALLED:
996 return options
1004 def __init__(self, options : argparse.Namespace, default_options=None) -> None:
1009 self.options = options
1012 if options.ninja:
1020 self.test_roots = options.testsuite_root
1022 if not isinstance(options.board_root, list):
1023 self.board_roots = [options.board_root]
1025 self.board_roots = options.board_root
1026 self.outdir = os.path.abspath(options.outdir)
1053 self.test_config = options.test_config
1055 self.alt_config_root = options.alt_config_root
1058 """Returns current command line options which are set to non-default values."""
1062 dict_options = vars(self.options)