Invoke mu_init with -noflags.
Showing
1 changed file
with
10 additions
and
26 deletions
... | @@ -18,16 +18,19 @@ | ... | @@ -18,16 +18,19 @@ |
18 | 18 | ||
19 | source $top_srcdir/testsuite/lib/mailutils.exp | 19 | source $top_srcdir/testsuite/lib/mailutils.exp |
20 | 20 | ||
21 | mu_init | 21 | mu_init -noflags |
22 | mu_prepare_spools | 22 | mu_prepare_spools |
23 | set mu_filename "$MU_FOLDER_DIR/mta.diag" | 23 | set mu_filename "$MU_FOLDER_DIR/mta.diag" |
24 | set env(MTA_DIAG) "$mu_filename" | 24 | set env(MTA_DIAG) "$mu_filename" |
25 | 25 | ||
26 | # mailer_remote_test [-message MESSAGE][-default (FAIL|XFAIL)] | 26 | # mail_remote_test [-message MESSAGE][-default (FAIL|XFAIL)] |
27 | # [-from FROM][-to TO][-pattern PATTERN-LIST][PATTERN...] | 27 | # [-input INPUT-LIST] |
28 | # [-args ARGS][-pattern PATTERN-LIST][PATTERN...] | ||
29 | # INPUT-LIST - List of input strings for MU_TOOL | ||
28 | # PATTERN - Sequence to expect in return. | 30 | # PATTERN - Sequence to expect in return. |
29 | # MESSAGE - [optional] message to output | 31 | # MESSAGE - [optional] message to output |
30 | proc mailer_remote_test { args } { | 32 | # ARGS - Additional arguments to MU_TOOL |
33 | proc mail_remote_test { args } { | ||
31 | global MU_TOOL | 34 | global MU_TOOL |
32 | global top_builddir | 35 | global top_builddir |
33 | global verbose | 36 | global verbose |
... | @@ -84,14 +87,6 @@ proc mailer_remote_test { args } { | ... | @@ -84,14 +87,6 @@ proc mailer_remote_test { args } { |
84 | } | 87 | } |
85 | } | 88 | } |
86 | 89 | ||
87 | verbose "Spawning $MU_TOOL --mailer $url $invocation" 1 | ||
88 | |||
89 | set res [remote_spawn host "$MU_TOOL --mailer $url $invocation"] | ||
90 | if { $res < 0 || $res == "" } { | ||
91 | perror "Spawning $MU_TOOL $invocation failed." | ||
92 | return 1; | ||
93 | } | ||
94 | |||
95 | if {"$message" == ""} { | 90 | if {"$message" == ""} { |
96 | set message [lindex $args 0] | 91 | set message [lindex $args 0] |
97 | } | 92 | } |
... | @@ -100,20 +95,9 @@ proc mailer_remote_test { args } { | ... | @@ -100,20 +95,9 @@ proc mailer_remote_test { args } { |
100 | send_user "Message is \"$message\"\n" | 95 | send_user "Message is \"$message\"\n" |
101 | } | 96 | } |
102 | 97 | ||
103 | set result "" | 98 | return [mailer_test -default $default -message $message \ |
104 | verbose "INPUT: $input" 1 | 99 | -input $input -pattern $pattern -file \ |
105 | for {set i 0} {$result == "" && $i < [llength $input]} {incr i} { | 100 | $mu_filename -args "--mailer $url $invocation"] |
106 | set s [lindex $input $i] | ||
107 | verbose "SEND: $s" 1 | ||
108 | set result [mu_send "[lindex $input $i]\n"] | ||
109 | verbose "RESULT: $result" | ||
110 | } | ||
111 | |||
112 | mu_send "" | ||
113 | |||
114 | remote_wait host 60 | ||
115 | |||
116 | return [mu_test_file -default $default -message $message -pattern $pattern $mu_filename] | ||
117 | } | 101 | } |
118 | 102 | ||
119 | 103 | ... | ... |
-
Please register or sign in to post a comment