git://git.exim.org
/
users
/
heiko
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Testsuite: do not attempt to open /dev/tty if in -CONTINUE mode
[users/heiko/exim.git]
/
test
/
runtest
diff --git
a/test/runtest
b/test/runtest
index 96867ff3acf594c5798a31e9be58eb90a9e23f8b..e8fbe4844757978758bbbb62919cefeebe1f24d1 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-1046,11
+1046,19
@@
RESET_AFTER_EXTRA_LINE_READ:
s/^((?:spool|log) directory space =) -?\d+K (inodes =)\s*-?\d+/$1 nnnnnK $2 nnnnn/;
# Non-TLS builds have different expansions for received_header_text
s/^((?:spool|log) directory space =) -?\d+K (inodes =)\s*-?\d+/$1 nnnnnK $2 nnnnn/;
# Non-TLS builds have different expansions for received_header_text
- if (s/(
\{with \$received_protocol)
}\} \$\{if def:tls_cipher \{\(\$tls_cipher\)\n$/$1/)
+ if (s/(
with \$received_protocol)\
}\} \$\{if def:tls_cipher \{\(\$tls_cipher\)\n$/$1/)
{
$_ .= <IN>;
{
$_ .= <IN>;
- s/\s+
(?=\}\}\{Exim)/
/;
+ s/\s+
\}\}(?=\(Exim )/\}\}
/;
}
}
+ if (/^ condition: def:tls_cipher$/)
+ {
+ <IN>; <IN>; <IN>; <IN>; <IN>; <IN>;
+ <IN>; <IN>; <IN>; <IN>; <IN>; next;
+ }
+
+ # Not all platforms build with DKIM enabled
+ next if /^PDKIM >> Body data for hash, canonicalized/;
# Not all platforms support TCP Fast Open, and the compile omits the check
if (s/\S+ in hosts_try_fastopen\? no \(option unset\)\n$//)
# Not all platforms support TCP Fast Open, and the compile omits the check
if (s/\S+ in hosts_try_fastopen\? no \(option unset\)\n$//)
@@
-3606,7
+3614,12
@@
closedir(DIR);
# contains ****. We open input from the terminal so that we can read responses
# to prompts.
# 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>;
print "\nPress RETURN to run the tests: ";
$_ = $force_continue ? "c" : <T>;