Skip to content

Commit

Permalink
Added test for broken smokers that don't set AUTOMATED_TESTING
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Mar 16, 2024
1 parent caad677 commit 36f6d34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ BEGIN {
}
}

# Test for broken smokers that don't set AUTOMATED_TESTING
if(my $reporter = $ENV{'PERL_CPAN_REPORTER_CONFIG'}) {
if($reporter =~ /smoker/i) {
warn 'AUTOMATED_TESTING added for you';
$ENV{'AUTOMATED_TESTING'} = 1;
}
}

if(scalar(@needfull)) {
my $list = join(' ', @needfull);
if($ENV{'AUTOMATED_TESTING'} &&
Expand Down

0 comments on commit 36f6d34

Please sign in to comment.