summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NPTest.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/NPTest.pm b/NPTest.pm
index 432f396..672cb99 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -54,8 +54,8 @@ user. The user can accept the developer's default value or reply "none"
54which will then be returned as "" for the test to skip if appropriate. 54which will then be returned as "" for the test to skip if appropriate.
55 55
56If a parameter needs to be entered and the test is run without a tty 56If a parameter needs to be entered and the test is run without a tty
57attached (such as a cronjob), this routine will die causing the test to 57attached (such as a cronjob), the parameter will be assigned as if it
58fail. 58was "none". Tests can check for the parameter and skip if not set.
59 59
60Responses are stored in an external, file-based 60Responses are stored in an external, file-based
61cache so subsequent test runs will use these values. The user is able 61cache 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