##// END OF EJS Templates
tests: fix test-patchbomb-tls.t instability...
marmoute -
r52391:25055932 stable
parent child Browse files
Show More
@@ -1,5 +1,15 b''
1 #require serve ssl
1 #require serve ssl
2
2
3 $ wait_log() {
4 > pattern="$1"
5 > for s in $TESTDIR/seq.py 10; do
6 > if grep "$pattern" $TESTTMP/log > /dev/null ; then
7 > break
8 > fi
9 > sleep 1
10 > done
11 > }
12
3 Set up SMTP server:
13 Set up SMTP server:
4
14
5 $ CERTSDIR="$TESTDIR/sslcerts"
15 $ CERTSDIR="$TESTDIR/sslcerts"
@@ -47,6 +57,7 b' we are able to load CA certs:'
47 (?i)abort: .*?certificate.verify.failed.* (re)
57 (?i)abort: .*?certificate.verify.failed.* (re)
48 [255]
58 [255]
49
59
60 $ wait_log "ssl error:"
50 $ cat ../log
61 $ cat ../log
51 * ssl error: * (glob)
62 * ssl error: * (glob)
52 $ : > ../log
63 $ : > ../log
@@ -62,6 +73,7 b' we are able to load CA certs:'
62 (?i)abort: .*?certificate.verify.failed.* (re)
73 (?i)abort: .*?certificate.verify.failed.* (re)
63 [255]
74 [255]
64
75
76 $ wait_log "ssl error:"
65 $ cat ../log
77 $ cat ../log
66 * ssl error: * (glob)
78 * ssl error: * (glob)
67 $ : > ../log
79 $ : > ../log
@@ -83,6 +95,7 b' Without certificates:'
83 (see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error or set hostsecurity.localhost:fingerprints=sha256:20:de:b3:ad:b4:cd:a5:42:f0:74:41:1c:a2:70:1e:da:6e:c0:5c:16:9e:e7:22:0f:f1:b7:e5:6e:e4:92:af:7e to trust this server)
95 (see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error or set hostsecurity.localhost:fingerprints=sha256:20:de:b3:ad:b4:cd:a5:42:f0:74:41:1c:a2:70:1e:da:6e:c0:5c:16:9e:e7:22:0f:f1:b7:e5:6e:e4:92:af:7e to trust this server)
84 [150]
96 [150]
85
97
98 $ wait_log "no hello:"
86 $ cat ../log
99 $ cat ../log
87 connection from * (glob)
100 connection from * (glob)
88 no hello: b''
101 no hello: b''
@@ -143,6 +156,7 b' With invalid certificates:'
143 (?i)abort: .*?certificate.verify.failed.* (re)
156 (?i)abort: .*?certificate.verify.failed.* (re)
144 [255]
157 [255]
145
158
159 $ wait_log "ssl error:"
146 $ cat ../log
160 $ cat ../log
147 * ssl error: * (glob)
161 * ssl error: * (glob)
148 $ : > ../log
162 $ : > ../log
General Comments 0
You need to be logged in to leave comments. Login now