summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2014-01-20 15:56:28 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2014-01-20 15:56:28 (GMT)
commitce3eaa25e1c6f39b7a1266592de22c1bfbc48f5d (patch)
tree22a7e962a95c0d81daa196d721c6e96095f4b6f1
parentbb38a5735216c1a2eefc9449a5a6b49733674c16 (diff)
downloadmonitoring-plugins-ce3eaa25e1c6f39b7a1266592de22c1bfbc48f5d.tar.gz
Fix NPTest.pm not asking for unconfigured variables
It appeats STDERR isn't a tty anymore during tests, but since we type from tty to STDIN it should be bound to our tty (and works for me).
-rw-r--r--NPTest.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/NPTest.pm b/NPTest.pm
index ebc2602..b00a708 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -347,7 +347,7 @@ sub getTestParameter
347 } 347 }
348 348
349 # Set "none" if no terminal attached (eg, tinderbox build servers when new variables set) 349 # Set "none" if no terminal attached (eg, tinderbox build servers when new variables set)
350 return "" unless (-t STDERR); 350 return "" unless (-t STDIN);
351 351
352 my $userResponse = ""; 352 my $userResponse = "";
353 353