[PATCH 2 of 2 STABLE] test-https: add some more known failure messages of client certs (issue6030)

Yuya Nishihara yuya at tcha.org
Sat Mar 16 23:56:45 EDT 2019


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1552794225 -32400
#      Sun Mar 17 12:43:45 2019 +0900
# Branch stable
# Node ID 52525ca12c946540be1db063e2c46c787379caa5
# Parent  13ee301f9ecedcb8b087c1e71dc535fa1fdf19be
test-https: add some more known failure messages of client certs (issue6030)

I don't think the exact error message is important here. On Debian sid,
ECONNRESET is raised, and "[SSL] tlsv13 alert certificate required" on NetBSD.

diff --git a/tests/test-https.t b/tests/test-https.t
--- a/tests/test-https.t
+++ b/tests/test-https.t
@@ -630,7 +630,7 @@ without client certificate:
 
   $ P="$CERTSDIR" hg id https://localhost:$HGPORT/
   warning: connecting to localhost using legacy security technology (TLS 1.0); see https://mercurial-scm.org/wiki/SecureConnections for more info (?)
-  abort: error: *handshake failure* (glob)
+  abort: error: .*(\$ECONNRESET\$|certificate required|handshake failure).* (re)
   [255]
 
 with client certificate:


More information about the Mercurial-devel mailing list