comparison tests/test-https.t @ 29356:93b83ef78d1e

tests: increase test-https malform error glob The recently introduced (ecc9b788fd690a0a) test around malformed pem files hard codes an error message which doesn't appear to be cross platform agnostic. On our machines (centos6 if it matters) the test output differs: - abort: error: unknown error* (glob) + abort: error: _ssl.c:330: error:00000000:lib(0):func(0):reason(0) This patch increases the glob to cover the entire error message.
author Durham Goode <durham@fb.com>
date Tue, 14 Jun 2016 18:14:42 -0700
parents ecc9b788fd69
children e1778b9c8d53
comparison
equal deleted inserted replaced
29355:85868ecf2c0d 29356:93b83ef78d1e
61 61
62 A malformed per-host certificate file will raise an error 62 A malformed per-host certificate file will raise an error
63 63
64 $ echo baddata > badca.pem 64 $ echo baddata > badca.pem
65 $ hg --config hostsecurity.localhost:verifycertsfile=badca.pem clone https://localhost:$HGPORT/ 65 $ hg --config hostsecurity.localhost:verifycertsfile=badca.pem clone https://localhost:$HGPORT/
66 abort: error: unknown error* (glob) 66 abort: error: * (glob)
67 [255] 67 [255]
68 68
69 A per-host certificate mismatching the server will fail verification 69 A per-host certificate mismatching the server will fail verification
70 70
71 $ hg --config hostsecurity.localhost:verifycertsfile="$CERTSDIR/client-cert.pem" clone https://localhost:$HGPORT/ 71 $ hg --config hostsecurity.localhost:verifycertsfile="$CERTSDIR/client-cert.pem" clone https://localhost:$HGPORT/