(mu_test_file): Fixed comment.
Showing
1 changed file
with
5 additions
and
8 deletions
... | @@ -683,7 +683,8 @@ proc mu_test_file {args} { | ... | @@ -683,7 +683,8 @@ proc mu_test_file {args} { |
683 | # [-file FILENAME] | 683 | # [-file FILENAME] |
684 | # [-input INPUT-LIST] | 684 | # [-input INPUT-LIST] |
685 | # [-args ARGS] | 685 | # [-args ARGS] |
686 | # [-pattern PATTERN-LIST][PATTERN...] | 686 | # [-pattern PATTERN-LIST] |
687 | # [ARGS...] | ||
687 | # INPUT-LIST - List of input strings | 688 | # INPUT-LIST - List of input strings |
688 | # PATTERN - Sequence to expect in return. | 689 | # PATTERN - Sequence to expect in return. |
689 | # MESSAGE - [optional] message to output | 690 | # MESSAGE - [optional] message to output |
... | @@ -733,13 +734,10 @@ proc mailer_test { args } { | ... | @@ -733,13 +734,10 @@ proc mailer_test { args } { |
733 | } | 734 | } |
734 | } | 735 | } |
735 | 736 | ||
736 | if {$i < [llength $args]} { | ||
737 | lappend pattern [lrange $args $i end] | ||
738 | } | ||
739 | |||
740 | verbose "Spawning $MU_TOOL $MU_TOOL_FLAGS $invocation" 1 | 737 | verbose "Spawning $MU_TOOL $MU_TOOL_FLAGS $invocation" 1 |
741 | 738 | ||
742 | set res [remote_spawn host "$MU_TOOL $MU_TOOL_FLAGS $invocation"] | 739 | set res [remote_spawn host "$MU_TOOL $MU_TOOL_FLAGS $invocation"] |
740 | |||
743 | if { $res < 0 || $res == "" } { | 741 | if { $res < 0 || $res == "" } { |
744 | perror "Spawning $MU_TOOL $MU_TOOL_FLAGS $invocation failed." | 742 | perror "Spawning $MU_TOOL $MU_TOOL_FLAGS $invocation failed." |
745 | return 1; | 743 | return 1; |
... | @@ -749,9 +747,8 @@ proc mailer_test { args } { | ... | @@ -749,9 +747,8 @@ proc mailer_test { args } { |
749 | set message [lindex $args 0] | 747 | set message [lindex $args 0] |
750 | } | 748 | } |
751 | 749 | ||
752 | if $verbose>2 then { | 750 | verbose "Message is \"$message\"" 2 |
753 | send_user "Message is \"$message\"\n" | 751 | verbose "Pattern is $pattern" 2 |
754 | } | ||
755 | 752 | ||
756 | set result "" | 753 | set result "" |
757 | verbose "INPUT: $input" 1 | 754 | verbose "INPUT: $input" 1 | ... | ... |
-
Please register or sign in to post a comment