diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-26 21:32:08 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-26 21:32:08 (GMT) |
commit | 299c6bab02f4a2068a7ba8bdfefc6c155f7d7364 (patch) | |
tree | 891e38a1313b5ec1a2dade57e33c33749ea294c3 | |
parent | 94a3cf91b3548388a9b278273ac596203a4a9e75 (diff) | |
download | monitoring-plugins-299c6bab02f4a2068a7ba8bdfefc6c155f7d7364.tar.gz |
New test variables default to "none", so no changes required to tinderbox satelites
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1530 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | NPTest.pm | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -54,8 +54,8 @@ user. The user can accept the developer's default value or reply "none" | |||
54 | which will then be returned as "" for the test to skip if appropriate. | 54 | which will then be returned as "" for the test to skip if appropriate. |
55 | 55 | ||
56 | If a parameter needs to be entered and the test is run without a tty | 56 | If a parameter needs to be entered and the test is run without a tty |
57 | attached (such as a cronjob), this routine will die causing the test to | 57 | attached (such as a cronjob), the parameter will be assigned as if it |
58 | fail. | 58 | was "none". Tests can check for the parameter and skip if not set. |
59 | 59 | ||
60 | Responses are stored in an external, file-based | 60 | Responses are stored in an external, file-based |
61 | cache so subsequent test runs will use these values. The user is able | 61 | cache so subsequent test runs will use these values. The user is able |
@@ -346,7 +346,8 @@ sub getTestParameter | |||
346 | return $default; | 346 | return $default; |
347 | } | 347 | } |
348 | 348 | ||
349 | die "Need to manually enter test parameter $param" unless (-t STDERR); | 349 | # Set "none" if no terminal attached (eg, tinderbox build servers when new variables set) |
350 | return "" unless (-t STDERR); | ||
350 | 351 | ||
351 | my $userResponse = ""; | 352 | my $userResponse = ""; |
352 | 353 | ||