Author: mvidner Date: Wed Mar 10 15:44:08 2010 New Revision: 61234 URL: http://svn.opensuse.org/viewcvs/yast?rev=61234&view=rev Log: Mode::test(): check getenv instead of the UI so that it works also in WebYaST (bnc#243624#c13). Modified: branches/SuSE-Code-11-SP1-Branch/yast2/VERSION branches/SuSE-Code-11-SP1-Branch/yast2/library/modules/Mode.ycp branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes Modified: branches/SuSE-Code-11-SP1-Branch/yast2/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/yast2/VERSION?rev=61234&r1=61233&r2=61234&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/yast2/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/yast2/VERSION Wed Mar 10 15:44:08 2010 @@ -1 +1 @@ -2.17.87 +2.17.88 Modified: branches/SuSE-Code-11-SP1-Branch/yast2/library/modules/Mode.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/yast2/library/modules/Mode.ycp?rev=61234&r1=61233&r2=61234&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/yast2/library/modules/Mode.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/yast2/library/modules/Mode.ycp Wed Mar 10 15:44:08 2010 @@ -132,14 +132,9 @@ if (_test == nil) Initialize (); if (!test_autochecked) { - - // do not call GetDisplayInfo in command line mode (bnc#374259) - if (commandline()) - { - _test = "none"; - } - else if (UI::GetDisplayInfo () == nil) { - _test = "testsuite"; // testsuite runs with a dummy ui. + // bnc#243624#c13: Y2ALLGLOBAL is set by yast2-testsuite/skel/runtest.sh + if (getenv ("Y2MODETEST") != nil || getenv ("Y2ALLGLOBAL") != nil) { + _test = "testsuite"; } test_autochecked = true; } Modified: branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes?rev=61234&r1=61233&r2=61234&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes Wed Mar 10 15:44:08 2010 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed Mar 10 15:43:17 CET 2010 - mvidner@suse.cz + +- Mode::test(): check getenv instead of the UI + so that it works also in WebYaST (bnc#243624#c13). +- 2.17.88 + +------------------------------------------------------------------- Wed Mar 3 23:09:10 CET 2010 - jsuchome@suse.cz - SERVICES.pm: added support for enabling/disabling service -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org