From 0b9ead6dd2746efbdc7525ba32816b85e9534263 Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Tue, 1 Nov 2016 13:58:36 +0100 Subject: [PATCH] Testsuite: do not attempt to open /dev/tty if in -CONTINUE mode --- test/runtest | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" : ; -- 2.25.1