[yast-commit] r60116 - in /trunk/storage/storage/src/testsuite/lib: helper1a.ycp helper1b.ycp

Author: aschnell Date: Wed Dec 16 13:55:20 2009 New Revision: 60116 URL: http://svn.opensuse.org/viewcvs/yast?rev=60116&view=rev Log: - use testsuite module instead of include - simulate meminfo Modified: trunk/storage/storage/src/testsuite/lib/helper1a.ycp trunk/storage/storage/src/testsuite/lib/helper1b.ycp Modified: trunk/storage/storage/src/testsuite/lib/helper1a.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/testsuite/lib... ============================================================================== --- trunk/storage/storage/src/testsuite/lib/helper1a.ycp (original) +++ trunk/storage/storage/src/testsuite/lib/helper1a.ycp Wed Dec 16 13:55:20 2009 @@ -1,5 +1,5 @@ { - include "testsuite.ycp"; + import "Testsuite"; map READ = $[ "probe" : $[ @@ -8,7 +8,8 @@ "cdrom" : [] ], "proc" : $[ - "swaps" : [] + "swaps" : [], + "meminfo" : $[ "memtotal" : 256 * 1024 ] ], "sysconfig" : $[ "storage" : $[ @@ -30,7 +31,7 @@ ], ]; - TESTSUITE_INIT([READ, $[], READ], nil); + Testsuite::Init([READ, $[], READ], nil); import "Stage"; Modified: trunk/storage/storage/src/testsuite/lib/helper1b.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/testsuite/lib... ============================================================================== --- trunk/storage/storage/src/testsuite/lib/helper1b.ycp (original) +++ trunk/storage/storage/src/testsuite/lib/helper1b.ycp Wed Dec 16 13:55:20 2009 @@ -1,6 +1,4 @@ { - include "testsuite.ycp"; - import "Storage"; import "StorageProposal"; @@ -17,17 +15,17 @@ list<map> infos = Storage::GetCommitInfos(); - DUMP("Proposal:"); + Testsuite::Dump("Proposal:"); foreach(map info, infos, { string text = info[`text]:""; if (info[`destructive]:false) text = text + " [destructive]"; - DUMP(text); + Testsuite::Dump(text); }); } else { - DUMP("No proposal."); + Testsuite::Dump("No proposal."); } Storage::FinishLibstorage(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org