[PATCH] test-https: stabilize for Windows

Matt Harbison mharbison72 at gmail.com
Wed Jul 12 02:14:49 UTC 2017


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1499825217 14400
#      Tue Jul 11 22:06:57 2017 -0400
# Node ID 6a82448038935002b24af767829d3a27908050ef
# Parent  26e4ba058215e536d3827befbea99ff6203d35f8
test-https: stabilize for Windows

A leading '/' without a following drive letter is resolved to the location of
the MSYS installation.  These could be collapsed into a single line of output,
but this seems more self documenting.

diff --git a/tests/test-https.t b/tests/test-https.t
--- a/tests/test-https.t
+++ b/tests/test-https.t
@@ -598,12 +598,14 @@
 
   $ hg serve -p $HGPORT --certificate=/missing/certificate \
   > --config devel.servercafile=$PRIV --config devel.serverrequirecert=true
-  abort: referenced certificate file (/missing/certificate) does not exist
+  abort: referenced certificate file (*/missing/certificate) does not exist (glob) (windows !)
+  abort: referenced certificate file (/missing/certificate) does not exist (no-windows !)
   [255]
 
   $ hg serve -p $HGPORT --certificate=$PRIV \
   > --config devel.servercafile=/missing/cafile --config devel.serverrequirecert=true
-  abort: referenced certificate file (/missing/cafile) does not exist
+  abort: referenced certificate file (*/missing/cafile) does not exist (glob) (windows !)
+  abort: referenced certificate file (/missing/cafile) does not exist (no-windows !)
   [255]
 
 Start hgweb that requires client certificates:
@@ -647,12 +649,14 @@
 Missing certficate and key files result in error
 
   $ hg id https://localhost:$HGPORT/ --config auth.l.cert=/missing/cert
-  abort: certificate file (/missing/cert) does not exist; cannot connect to localhost
+  abort: certificate file (*/missing/cert) does not exist; cannot connect to localhost (glob) (windows !)
+  abort: certificate file (/missing/cert) does not exist; cannot connect to localhost (no-windows !)
   (restore missing file or fix references in Mercurial config)
   [255]
 
   $ hg id https://localhost:$HGPORT/ --config auth.l.key=/missing/key
-  abort: certificate file (/missing/key) does not exist; cannot connect to localhost
+  abort: certificate file (*/missing/key) does not exist; cannot connect to localhost (glob) (windows !)
+  abort: certificate file (/missing/key) does not exist; cannot connect to localhost (no-windows !)
   (restore missing file or fix references in Mercurial config)
   [255]
 


More information about the Mercurial-devel mailing list