[Rt-commit] r13718 - rt/3.8/trunk/lib/RT
clkao at bestpractical.com
clkao at bestpractical.com
Tue Jul 1 13:29:59 EDT 2008
Author: clkao
Date: Tue Jul 1 13:29:59 2008
New Revision: 13718
Modified:
rt/3.8/trunk/lib/RT/Test.pm
Log:
sqlite wants mason session data to be there.
Modified: rt/3.8/trunk/lib/RT/Test.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Test.pm (original)
+++ rt/3.8/trunk/lib/RT/Test.pm Tue Jul 1 13:29:59 2008
@@ -115,6 +115,7 @@
use RT::Interface::Web::Standalone;
use Test::HTTP::Server::Simple;
use Test::WWW::Mechanize;
+use File::Path 'mkpath';
unshift @RT::Interface::Web::Standalone::ISA, 'Test::HTTP::Server::Simple';
@@ -167,6 +168,12 @@
min_level => $screen_logger->min_level,
action => { error => 'warn',
critical => 'warn' } ) );
+
+ # XXX: this should really be totally isolated environment so we
+ # can parallelize and be sane
+ mkpath [ $RT::MasonSessionDir ]
+ if RT->Config->Get('DatabaseType');
+
}
my $created_new_db; # have we created new db? mainly for parallel testing
More information about the Rt-commit
mailing list