File: 03-smtptest

package info (click to toggle)
nmh 1.8-3
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 7,860 kB
  • sloc: ansic: 50,445; sh: 22,697; makefile: 1,138; lex: 740; perl: 509; yacc: 265
file content (21 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Author: Alexander Zangerl <az@debian.org>
Description: fakesmtp test tool doesn't always start fast enough

--- a/test/post/test-post-common.sh
+++ b/test/post/test-post-common.sh
@@ -25,11 +25,13 @@ echo "clientname: nosuchhost.example.com
 # $1: output filename for fakesmtp, i.e., the sent message
 # $2: expected output
 # $3: optional switches for send
-
+# $4: don't retry
 test_post ()
 { pid=`"${MH_OBJ_DIR}/test/fakesmtp" "$1" $localport`
 
-    run_prog send -draft -server 127.0.0.1 -port $localport $3
+	# The server doesn't always come up fast enough, so sleep a little
+	sleep 5
+	run_prog send -draft -server 127.0.0.1 -port $localport $3
 
     #
     # It's hard to calculate the exact Date: header post is going to