changeset 47306:aa07bcc4f505

test: remove some unnecessary dependency on repo format Differential Revision: https://phab.mercurial-scm.org/D10757
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
date Tue, 18 May 2021 23:36:21 -0400
parents 33e7508b0ae9
children 13dd5bb5492a
files tests/test-transaction-rollback-on-sigpipe.t
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-transaction-rollback-on-sigpipe.t	Fri May 21 17:37:53 2021 +0200
+++ b/tests/test-transaction-rollback-on-sigpipe.t	Tue May 18 23:36:21 2021 -0400
@@ -1,14 +1,10 @@
 #require bash
-Test that, when an hg push is interrupted and the remote side recieves SIGPIPE,
+Test that, when an hg push is interrupted and the remote side receives SIGPIPE,
 the remote hg is able to successfully roll back the transaction.
 
   $ hg init -q remote
   $ 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!"
-  > }
-
   $ pidfile=`pwd`/pidfile
   $ >$pidfile
 
@@ -59,5 +55,7 @@
   $ 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
+The remote should be left in a good state
+  $ hg --cwd ../remote recover
+  no interrupted transaction available
   [1]