Mercurial > hg
changeset 24860:263ec70769cb stable
test-bundle2-exchange: make hooks compatible with Windows
The cmd.exe process doesn't fail the hook when "; false" is appended, and its
echo command prints out the quote characters.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 26 Apr 2015 15:10:09 -0400 |
parents | 64e3f97bdf08 |
children | 15d7f435108a |
files | tests/test-bundle2-exchange.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-bundle2-exchange.t Tue Apr 28 00:38:16 2015 +0900 +++ b/tests/test-bundle2-exchange.t Sun Apr 26 15:10:09 2015 -0400 @@ -557,8 +557,8 @@ > [failpush] > reason = > [hooks] - > pretxnclose.failpush = echo "You shall not pass!"; false - > txnabort.failpush = echo 'Cleaning up the mess...' + > pretxnclose.failpush = sh -c "echo 'You shall not pass!'; false" + > txnabort.failpush = sh -c "echo 'Cleaning up the mess...'" > EOF $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS @@ -622,7 +622,7 @@ Check error from hook during the unbundling process itself $ cat << EOF >> $HGRCPATH - > pretxnchangegroup = echo "Fail early!"; false + > pretxnchangegroup = sh -c "echo 'Fail early!'; false" > EOF $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS # reload http config $ hg -R other serve -p $HGPORT2 -d --pid-file=other.pid -E other-error.log