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

login
register
mail settings
Submitter Yuya Nishihara
Date March 17, 2019, 3:56 a.m.
Message ID <52525ca12c946540be1d.1552795005@mimosa>
Download mbox | patch
Permalink /patch/39307/
State Accepted
Headers show

Comments

Yuya Nishihara - March 17, 2019, 3:56 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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: