[PATCH 1 of 2] test-push-http: include exit status of hg push
Yuya Nishihara
yuya at tcha.org
Wed Sep 5 15:29:50 UTC 2012
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1346857123 -32400
# Branch stable
# Node ID c5df3b232f38cbd260a3f5fcd610d5b94502b758
# Parent 3ee5d3c372fabcf57c305835dac98da78bdc1837
test-push-http: include exit status of hg push
diff --git a/tests/test-push-http.t b/tests/test-push-http.t
--- a/tests/test-push-http.t
+++ b/tests/test-push-http.t
@@ -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 @@ expect ssl error
remote: ssl required
updating cb9a9f314b8b to public failed!
% serve errors
+ [1]
expect authorization error
@@ -41,6 +44,7 @@ expect authorization error
searching for changes
abort: authorization failed
% serve errors
+ [255]
expect authorization error: must have authorized user
@@ -50,6 +54,7 @@ expect authorization error: must have au
searching for changes
abort: authorization failed
% serve errors
+ [255]
expect success
@@ -110,6 +115,7 @@ expect authorization error: all users de
searching for changes
abort: authorization failed
% serve errors
+ [255]
expect authorization error: some users denied, users must be authenticated
@@ -119,5 +125,6 @@ expect authorization error: some users d
searching for changes
abort: authorization failed
% serve errors
+ [255]
$ cd ..
More information about the Mercurial-devel
mailing list