summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NPTest.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/NPTest.pm b/NPTest.pm
index 7ecf743..e321623 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -53,6 +53,10 @@ developer to interactively request test parameter information from the
53user. The user can accept the developer's default value or reply "none" 53user. 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
57attached (such as a cronjob), this routine will die causing the test to
58fail.
59
56Responses are stored in an external, file-based 60Responses are stored in an external, file-based
57cache 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
58to change the values by amending the values in the file /var/tmp/NPTest.pm, 62to change the values by amending the values in the file /var/tmp/NPTest.pm,
@@ -342,6 +346,8 @@ sub getTestParameter
342 return $default; 346 return $default;
343 } 347 }
344 348
349 die "Need to manually enter test parameter $param" unless (-t STDERR);
350
345 my $userResponse = ""; 351 my $userResponse = "";
346 352
347 while ( $userResponse eq "" ) 353 while ( $userResponse eq "" )