From: Peter Rabbitson Date: Wed, 19 Dec 2012 13:04:55 +0000 (+0100) Subject: Fix broken DBICTest::RunMode::is_smoker() (riba got pwned by precedence) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1a08c5eddb5b57f5ba63440ee9ff66b1de2ab74e;p=dbsrgits%2FDBIx-Class-Historic.git Fix broken DBICTest::RunMode::is_smoker() (riba got pwned by precedence) --- diff --git a/t/lib/DBICTest/RunMode.pm b/t/lib/DBICTest/RunMode.pm index 9e99009..53eb073 100644 --- a/t/lib/DBICTest/RunMode.pm +++ b/t/lib/DBICTest/RunMode.pm @@ -150,9 +150,11 @@ sub is_author { } sub is_smoker { - return $ENV{TRAVIS} or ( - $ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING} - ) + return + ( ($ENV{TRAVIS}||'') eq 'true' ) + || + ( $ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING} ) + ; } sub is_plain {