Testsuite: do not attempt to open /dev/tty if in -CONTINUE mode
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Tue, 1 Nov 2016 12:58:36 +0000 (13:58 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Tue, 1 Nov 2016 12:58:36 +0000 (13:58 +0100)
test/runtest

index eee02436d9a13f5ca868f8bf0ccd0174997f692a..e8fbe4844757978758bbbb62919cefeebe1f24d1 100755 (executable)
@@ -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>;