diff tests/test-https.t @ 13544:66d65bccbf06 stable

cacert: improve error report when web.cacert file does not exist
author timeless <timeless@gmail.com>
date Sun, 06 Mar 2011 10:27:07 -0600
parents d724a69309e0
children 4f31220d67c7
line wrap: on
line diff
--- a/tests/test-https.t	Sun Mar 06 05:56:59 2011 -0600
+++ b/tests/test-https.t	Sun Mar 06 10:27:07 2011 -0600
@@ -96,6 +96,12 @@
   $ hg serve -p $HGPORT -d --pid-file=../hg0.pid --certificate=$PRIV
   $ cat ../hg0.pid >> $DAEMON_PIDS
 
+cacert not found
+
+  $ hg in --config web.cacerts=no-such.pem https://localhost:$HGPORT/
+  abort: could not find web.cacerts: no-such.pem
+  [255]
+
 Test server address cannot be reused
 
   $ hg serve -p $HGPORT --certificate=$PRIV 2>&1