Author: lslezak Date: Wed Sep 7 15:29:13 2011 New Revision: 65590 URL: http://svn.opensuse.org/viewcvs/yast?rev=65590&view=rev Log: fixed Service::FullInfo() test Modified: branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.out branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.ycp Modified: branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.out URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.out?rev=65590&r1=65589&r2=65590&view=diff ============================================================================== --- branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.out (original) +++ branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.out Wed Sep 7 15:29:13 2011 @@ -1,7 +1,8 @@ -Read .init.scripts.exists "aaa" true -Read .init.scripts.exists "aaa" true +Read .target.tmpdir "/tmp" +Read .target.stat "/etc/init.d/aaa" $["isreg":true] +Read .target.stat "/etc/init.d/aaa" $["isreg":true] Read .init.scripts.runlevel "aaa" $["aaa":$["start":["0", "1", "3"], "stop":["4", "5", "6"]]] Read .init.scripts.comment "aaa" $["aaa":$["defstart":["0", "1", "3"], "defstop":["4", "5", "6"]]] -Read .init.scripts.exists "aaa" true -Execute .target.bash "/etc/init.d/aaa status" $["TERM":"raw"] 3 +Read .target.stat "/etc/init.d/aaa" $["isreg":true] +Execute .target.bash "/sbin/service aaa status" $["TERM":"raw"] 3 Return $["defstart":["0", "1", "3"], "defstop":["4", "5", "6"], "start":["0", "1", "3"], "started":3, "stop":["4", "5", "6"]] Modified: branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.ycp?rev=65590&r1=65589&r2=65590&view=diff ============================================================================== --- branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.ycp (original) +++ branches/tmp/lslezak/yast2/library/runlevel/testsuite/tests/ServiceFullInfo.ycp Wed Sep 7 15:29:13 2011 @@ -1,6 +1,9 @@ { include "testsuite.ycp"; + + TESTSUITE_INIT ([$[ "target" : $[ "tmpdir": "/tmp" ] ], $[], $[]], nil); + import "Service"; map READ = $[]; @@ -24,7 +27,10 @@ ], "exists" : true, ] - ] + ], + "target" : $[ + "stat" : $["isreg": true] + ] ]; TEST (``(Service::FullInfo ("aaa")), [ READ, $[], EXEC ], nil); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org