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.

workaround_suppress_lvm_warnings

 workaround_suppress_lvm_warnings();

LVM is polluting stdout with leaked invocation warnings because of file descriptor 3 is assigned to /root/.bash_history.

record_soft_failure if is 'is_tumbleweed' for issue 'bsc#1124481 - LVM is polluting stdout with leaked invocation warnings'.

The workaround suppresses the warnings by setting the environment variable LVM_SUPPRESS_FD_WARNINGS.