Mercurial > hg-stable
changeset 17455:2212af23c9de
test-push-http: include exit status of hg push
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 05 Sep 2012 23:58:43 +0900 |
parents | 97899a01d3e5 |
children | 59a168019255 |
files | tests/test-push-http.t |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 ..