lib/y2_module_basetest.pm

y2_module_basetest.pm

This module provides common subroutines for YaST2 modules in graphical and text mode.

with_yast_env_variables

with_yast_env_variables([extra_vars]);

Set environment variables for yast application. extra_vars extends the variables that can be used. extra_vars expects a string. ex: with_yast_env_variables("foo=bar");

is_network_manager_default

is_network_manager_default();

openSUSE desktop roles have network manager as default except for older Leap versions.

continue_info_network_manager_default

continue_info_network_manager_default();

Click on Continue when appears info indicating that network interfaces are controlled by Network Manager

accept_warning_network_manager_default

accept_warning_network_manager_default();

Click on OK when appears a warning indicating that network interfaces are controlled by Network Manager.

wait_for_exit

wait_for_exit(module => $module, timeout => $timeout);

Wait for string yast2-$module-status-0 (which has been previously used to open the module) to appear in the serial output using a timeout in order to ensure that the module exited.

module module to wait for exit. timeout timeout to wait on the serial.