From: Heiko Schlittermann (HS12-RIPE) Date: Tue, 1 Nov 2016 12:58:36 +0000 (+0100) Subject: Testsuite: do not attempt to open /dev/tty if in -CONTINUE mode X-Git-Tag: exim-4_88_RC4~24 X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=commitdiff_plain;h=0b9ead6dd2746efbdc7525ba32816b85e9534263 Testsuite: do not attempt to open /dev/tty if in -CONTINUE mode --- 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" : ;