Tests fix: skip if we don't have cprods set up.

        Patch by kareila. 

diffs (17 lines):

diff -r b9060a643e0e -r f5ab3d6f909b t/cprod.t
--- a/t/cprod.t Tue Apr 13 07:34:35 2010 -0700
+++ b/t/cprod.t Tue Apr 13 07:55:29 2010 -0700
@@ -7,8 +7,11 @@ use LJ::CProd;
 use LJ::CProd;
 use LJ::Test qw(memcache_stress temp_user);
 
-#plan tests => 4;
-plan skip_all => 'Fix this test!';
+if ( @LJ::CPROD_PROMOS ) {
+    plan tests => 4;
+} else {
+    plan skip_all => '@LJ::CPROD_PROMOS undefined.';
+}
 
 sub run_tests {
     my $u = temp_user();
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to