Skip to content
Snippets Groups Projects
Commit 072e4a59 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

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.
parent 284d742e
No related branches found
No related tags found
No related merge requests found
......@@ -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" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment