summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-11-01 13:58:36 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-11-01 13:58:36 +0100
commit0b9ead6dd2746efbdc7525ba32816b85e9534263 (patch)
treec1f9564d606c07af660c27a3bff70a70d94be725
parent340f31131ec982ff70e943523f962438c5641e57 (diff)
Testsuite: do not attempt to open /dev/tty if in -CONTINUE mode
-rwxr-xr-xtest/runtest7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/runtest b/test/runtest
index eee02436d..e8fbe4844 100755
--- a/test/runtest
+++ b/test/runtest
@@ -3614,7 +3614,12 @@ closedir(DIR);
# contains ****. We open input from the terminal so that we can read responses
# to prompts.
-open(T, "/dev/tty") || tests_exit(-1, "Failed to open /dev/tty: $!");
+if (not $force_continue) {
+ # runtest needs to interact if we're not in continue
+ # mode. It does so by communicate to /dev/tty
+ open(T, "/dev/tty") or tests_exit(-1, "Failed to open /dev/tty: $!");
+}
+
print "\nPress RETURN to run the tests: ";
$_ = $force_continue ? "c" : <T>;