tests: add test for empty CA certs file
smf reported that an environment with no loaded CA certs resulted
in a weird error. I'd like to detect this a bit better so we can
display an actionable error message.
The actual error being globbed over in this patch is "unknown error"
with a ssl.c line number. That isn't useful at all.
--- a/tests/test-https.t Mon Jun 06 13:08:13 2016 +0200
+++ b/tests/test-https.t Wed Jun 29 18:15:28 2016 -0700
@@ -180,6 +180,14 @@
searching for changes
no changes found
+empty cacert file
+
+ $ touch emptycafile
+ $ hg --config web.cacerts=emptycafile -R copy-pull pull
+ pulling from https://localhost:$HGPORT/
+ abort: error: * (glob)
+ [255]
+
cacert mismatch
$ hg -R copy-pull pull --config web.cacerts="$CERTSDIR/pub.pem" \