[nagiosplug] tests: don't skip utils test
Nagios Plugin Development
nagios-plugins at users.sourceforge.net
Mon Sep 16 11:50:19 CEST 2013
Module: nagiosplug
Branch: master
Commit: 0b656ecd2f6539b0b43b945128e20d5c98ebbf6c
Author: Sven Nierlein <sven at nierlein.de>
Date: Mon Sep 16 08:59:37 2013 +0200
URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=0b656ec
tests: don't skip utils test
---
NPTest.pm | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/NPTest.pm b/NPTest.pm
index f14657c..0713b5e 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}";
}
More information about the Commits
mailing list