tests/test-push-http.t
changeset 17455 2212af23c9de
parent 17018 e7fdfc702d9f
child 17456 59a168019255
--- a/tests/test-push-http.t	Thu Sep 06 15:53:59 2012 +0200
+++ b/tests/test-push-http.t	Wed Sep 05 23:58:43 2012 +0900
@@ -16,9 +16,11 @@
   >     hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
   >     cat hg.pid >> $DAEMON_PIDS
   >     hg --cwd ../test2 push http://localhost:$HGPORT/
+  >     exitstatus=$?
   >     "$TESTDIR/killdaemons.py"
   >     echo % serve errors
   >     cat errors.log
+  >     return $exitstatus
   > }
   $ cd ../test
 
@@ -31,6 +33,7 @@
   remote: ssl required
   updating cb9a9f314b8b to public failed!
   % serve errors
+  [1]
 
 expect authorization error
 
@@ -41,6 +44,7 @@
   searching for changes
   abort: authorization failed
   % serve errors
+  [255]
 
 expect authorization error: must have authorized user
 
@@ -50,6 +54,7 @@
   searching for changes
   abort: authorization failed
   % serve errors
+  [255]
 
 expect success
 
@@ -110,6 +115,7 @@
   searching for changes
   abort: authorization failed
   % serve errors
+  [255]
 
 expect authorization error: some users denied, users must be authenticated
 
@@ -119,5 +125,6 @@
   searching for changes
   abort: authorization failed
   % serve errors
+  [255]
 
   $ cd ..