Permalink
Browse files

Makes not-shutoff logs working in tests

  • Loading branch information...
1 parent 3f768ec commit fbed1d4056b2d0b8bf46950db52fc9fc672f7180 @yannk committed Jul 23, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 t/testutils.pl
View
@@ -1,6 +1,16 @@
use ControlFreak::Logger;
use Time::HiRes qw/gettimeofday tv_interval/;
+{
+ no warnings 'redefine';
+ *ControlFreak::Logger::default_config = sub { \<<EOL
+ log4perl.rootLogger=INFO, SCREEN
+ log4perl.appender.SCREEN=Log::Log4perl::Appender::Screen
+ log4perl.appender.SCREEN.layout=SimpleLayout
+EOL
+ };
+}
+
sub wait_for_starting { wait_for_status('is_starting', @_) }
sub wait_for_running { wait_for_status('is_running', @_) }
sub wait_for_down { wait_for_status('is_down', @_) }

0 comments on commit fbed1d4

Please sign in to comment.