Bugzilla – Attachment #347263: y2modetest.diff for bug #243624
if (_test == nil)
Initialize ();
if (!test_autochecked) {
// bnc#243624#c13: Y2ALLGLOBAL is set by yast2-testsuite/skel/runtest.sh
// do not call GetDisplayInfo in command line mode (bnc#374259)
if (getenv ("Y2MODETEST") != nil || getenv ("Y2ALLGLOBAL") != nil) {
if (commandline())
_test = "testsuite";
{
_test = "none";
}
else if (UI::GetDisplayInfo () == nil) {
_test = "testsuite"; // testsuite runs with a dummy ui.
test_autochecked = true;