summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94a3cf9)
raw | patch | inline | side by side (parent: 94a3cf9)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 26 Oct 2006 21:32:08 +0000 (21:32 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 26 Oct 2006 21:32:08 +0000 (21:32 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1530 f882894a-f735-0410-b71e-b25c423dba1c
NPTest.pm | patch | blob | history |
diff --git a/NPTest.pm b/NPTest.pm
index 432f3968cec95bd351f43ed4e990067b1e6e0fce..672cb99c6c807ebda1ffaca604b0230f08bb4ee9 100644 (file)
--- a/NPTest.pm
+++ b/NPTest.pm
which will then be returned as "" for the test to skip if appropriate.
If a parameter needs to be entered and the test is run without a tty
-attached (such as a cronjob), this routine will die causing the test to
-fail.
+attached (such as a cronjob), the parameter will be assigned as if it
+was "none". Tests can check for the parameter and skip if not set.
Responses are stored in an external, file-based
cache so subsequent test runs will use these values. The user is able
return $default;
}
- die "Need to manually enter test parameter $param" unless (-t STDERR);
+ # Set "none" if no terminal attached (eg, tinderbox build servers when new variables set)
+ return "" unless (-t STDERR);
my $userResponse = "";