def _process_guest_os(self): guest_os_setting = "option --vt-guest-os" if self.options.vt_type == "spice": logging.info("Ignoring predefined OS: %s", guest_os_setting) return if not self.options.vt_config: if len(standalone_test.get_guest_name_list(self.options)) == 0: raise ValueError( "%s '%s' is not on the known guest os for " "arch '%s' and machine type '%s'. (see " "--vt-list-guests)" % (guest_os_setting, self.options.vt_guest_os, self.options.vt_arch, self.options.vt_machine_type) ) self.cartesian_parser.only_filter(self.options.vt_guest_os or defaults.DEFAULT_GUEST_OS) else: logging.info("Config provided, ignoring %s", guest_os_setting)
def _process_guest_os(self): guest_os_setting = 'option --vt-guest-os' if self.options.vt_type == 'spice': logging.info("Ignoring predefined OS: %s", guest_os_setting) return if not self.options.vt_config: if len(standalone_test.get_guest_name_list(self.options)) == 0: raise ValueError( "%s '%s' is not on the known guest os for " "arch '%s' and machine type '%s'. (see " "--vt-list-guests)" % (guest_os_setting, self.options.vt_guest_os, self.options.vt_arch, self.options.vt_machine_type)) self.cartesian_parser.only_filter(self.options.vt_guest_os or defaults.DEFAULT_GUEST_OS) else: logging.info("Config provided, ignoring %s", guest_os_setting)
def _process_guest_os(self): guest_os_setting = 'option --vt-guest-os' if get_opt(self.config, 'vt.type') == 'spice': LOG.info("Ignoring predefined OS: %s", guest_os_setting) return if not get_opt(self.config, 'vt.config'): if len(standalone_test.get_guest_name_list(self.config)) == 0: raise ValueError( "%s '%s' is not on the known guest os for " "arch '%s' and machine type '%s'. (see " "--vt-list-guests)" % (guest_os_setting, get_opt(self.config, 'vt.guest_os'), get_opt(self.config, 'vt.common.arch'), get_opt(self.config, 'vt.common.machine_type'))) self.cartesian_parser.only_filter( get_opt(self.config, 'vt.guest_os') or defaults.DEFAULT_GUEST_OS) else: LOG.info("Config provided, ignoring %s", guest_os_setting)