[Jifty-commit] r7320 - jifty/trunk/lib/Jifty/Test

Jifty commits jifty-commit at lists.jifty.org
Wed Jul 15 06:05:44 EDT 2009


Author: sartak
Date: Wed Jul 15 06:05:44 2009
New Revision: 7320

Modified:
   jifty/trunk/lib/Jifty/Test/Dist.pm

Log:
Add @post_chdir to Jifty::Test::Dist for tests that need to do stuff
between chdir and Jifty load

Modified: jifty/trunk/lib/Jifty/Test/Dist.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test/Dist.pm	(original)
+++ jifty/trunk/lib/Jifty/Test/Dist.pm	Wed Jul 15 06:05:44 2009
@@ -4,11 +4,17 @@
 use File::Spec;
 use Cwd;
 
+our @post_chdir;
+
 BEGIN {
     $Jifty::Test::Dist::OrigCwd = Cwd::cwd;
 
     @INC = grep { defined } map { ref($_) ? $_ : File::Spec->rel2abs($_) } @INC;
     chdir "$FindBin::Bin/..";
+
+    # SetupWizard needs this to remove lingering site_config files before
+    # loading Jifty
+    for (@post_chdir) { $_->() }
 }
 
 use lib 'lib';


More information about the Jifty-commit mailing list