aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2013-09-16 08:59:37 +0200
committerGravatar Sven Nierlein <sven@nierlein.de> 2013-09-16 08:59:37 +0200
commit0b656ecd2f6539b0b43b945128e20d5c98ebbf6c (patch)
tree80808a174152456f77c15413b18c1d129273caad
parent095e2e5db52ff5ff60eb319099d047c7c060d800 (diff)
downloadmonitoring-plugins-0b656ecd2f6539b0b43b945128e20d5c98ebbf6c.tar.gz
tests: don't skip utils test
-rw-r--r--NPTest.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/NPTest.pm b/NPTest.pm
index f14657c1..0713b5ef 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -559,12 +559,12 @@ sub TestsFrom
{
if ( $excludeIfAppMissing )
{
- $application = basename( $filename, ".t" );
- if ( ! -e $application )
- {
- print STDERR "No application (${application}) found for test harness (${filename})\n";
- next;
- }
+ $application = basename( $filename, ".t" );
+ if ( ! -e $application and ! -e $application.'.pm' )
+ {
+ print STDERR "No application (${application}) found for test harness (${filename})\n";
+ next;
+ }
}
push @tests, "${directory}/${filename}";
}