summaryrefslogtreecommitdiff
path: root/test/runtest
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2016-04-08 00:44:36 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2016-04-08 00:44:36 +0100
commita2550b677cfc7c4dd6ac1ac24c7f029b6e5ef44d (patch)
tree4e4d1616bf24b3fdd609139719b15073bb60fcd2 /test/runtest
parente7b410edad070f3b7d72bda87266456ad8a5ae6f (diff)
Testsuite: ignore environment-stripping debug output
since different systems run different environments
Diffstat (limited to 'test/runtest')
-rwxr-xr-xtest/runtest50
1 files changed, 17 insertions, 33 deletions
diff --git a/test/runtest b/test/runtest
index 4843fa80e..f6e57b4b5 100755
--- a/test/runtest
+++ b/test/runtest
@@ -564,25 +564,6 @@ RESET_AFTER_EXTRA_LINE_READ:
# signature algorithm names
s/RSA-SHA1/RSA-SHA/;
- # -d produces a list of environment variables as they are checked if they exist
- # in the environment. Unfortunately this list isn't always in the same order. For now we
- # just remove this list
- #
- if (/^\w+ in keep_environment/)
- {
- my @lines = $_;
- while (<IN>)
- {
- if (/^\w+ in keep_environment/)
- {
- push @lines, $_;
- next;
- }
- print MUNGED sort grep { !/^(SHLVL|_) / } @lines;
- redo LINE;
- }
- }
-
# ======== Caller's login, uid, gid, home, gecos ========
@@ -1023,6 +1004,23 @@ RESET_AFTER_EXTRA_LINE_READ:
while (<IN>) { last if !/^\s/; }
}
+ # remote port numbers vary
+ s/(Connection request from 127.0.0.1 port) \d{1,5}/$1 sssss/;
+
+ # Skip hosts_require_dane checks when the options
+ # are unset, because dane ain't always there.
+
+ next if /in\shosts_require_dane\?\sno\s\(option\sunset\)/x;
+
+ # SUPPORT_PROXY
+ next if /host in hosts_proxy\?/;
+
+ # Experimental_International
+ next if / in smtputf8_advertise_hosts\? no \(option unset\)/;
+
+ # Environment cleaning
+ next if /\w+ in keep_environment\? (yes|no)/;
+
# When Exim is checking the size of directories for maildir, it uses
# the check_dir_size() function to scan directories. Of course, the order
# of the files that are obtained using readdir() varies from system to
@@ -1044,20 +1042,6 @@ RESET_AFTER_EXTRA_LINE_READ:
@saved = ();
}
- # remote port numbers vary
- s/(Connection request from 127.0.0.1 port) \d{1,5}/$1 sssss/;
-
- # Skip hosts_require_dane checks when the options
- # are unset, because dane ain't always there.
-
- next if /in\shosts_require_dane\?\sno\s\(option\sunset\)/x;
-
- # SUPPORT_PROXY
- next if /host in hosts_proxy\?/;
-
- # Experimental_International
- next if / in smtputf8_advertise_hosts\? no \(option unset\)/;
-
# Skip some lines that Exim puts out at the start of debugging output
# because they will be different in different binaries.