Mercurial > hg
changeset 45754:b713e4cae2d7 stable
test: avoid bashisms in test-transaction-rollback-on-sigpipe.t
Differential Revision: https://phab.mercurial-scm.org/D9239
author | Mitchell Plamann <mplamann@janestreet.com> |
---|---|
date | Thu, 22 Oct 2020 12:31:26 -0400 |
parents | d1ce0ffdd3ce |
children | 8ed69bd42f10 |
files | tests/test-transaction-rollback-on-sigpipe.t |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-transaction-rollback-on-sigpipe.t Wed Oct 21 22:53:15 2020 -0700 +++ b/tests/test-transaction-rollback-on-sigpipe.t Thu Oct 22 12:31:26 2020 -0400 @@ -5,7 +5,7 @@ $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" -q ssh://user@dummy/`pwd`/remote local $ check_for_abandoned_transaction() { - > [[ -f $TESTTMP/remote/.hg/store/journal ]] && echo "Abandoned transaction!" + > [ -f $TESTTMP/remote/.hg/store/journal ] && echo "Abandoned transaction!" > } $ pidfile=`pwd`/pidfile @@ -55,12 +55,7 @@ $ cd local $ echo foo > foo ; hg commit -qAm "commit" - $ hg push -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --remotecmd $remotecmd 2>&1 | grep -v $killable_pipe - pushing to ssh://user@dummy/$TESTTMP/remote - searching for changes - remote: adding changesets - remote: adding manifests - remote: adding file changes + $ hg push -q -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --remotecmd $remotecmd 2>&1 | grep -v $killable_pipe abort: stream ended unexpectedly (got 0 bytes, expected 4) $ check_for_abandoned_transaction