Patchwork D9239: test: avoid bashisms in test-transaction-rollback-on-sigpipe.t

login
register
mail settings
Submitter phabricator
Date Oct. 22, 2020, 4:42 p.m.
Message ID <differential-rev-PHID-DREV-h77nsp6gj6dt46jpsg4n-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47507/
State Superseded
Headers show

Comments

phabricator - Oct. 22, 2020, 4:42 p.m.
mplamann created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D9239

AFFECTED FILES
  tests/test-transaction-rollback-on-sigpipe.t

CHANGE DETAILS




To: mplamann, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-transaction-rollback-on-sigpipe.t b/tests/test-transaction-rollback-on-sigpipe.t
--- a/tests/test-transaction-rollback-on-sigpipe.t
+++ b/tests/test-transaction-rollback-on-sigpipe.t
@@ -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