test-sigpipe: run the hook using `sh`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 12 Jul 2021 00:14:11 +0200
changeset 47615 a8d1adeeba87
parent 47614 9aad229a773a
child 47616 df6148ca7120
test-sigpipe: run the hook using `sh` This make the hook properly run on Windows. Differential Revision: https://phab.mercurial-scm.org/D11084
tests/test-transaction-rollback-on-sigpipe.t
--- a/tests/test-transaction-rollback-on-sigpipe.t	Thu Jun 10 17:58:03 2021 +0200
+++ b/tests/test-transaction-rollback-on-sigpipe.t	Mon Jul 12 00:14:11 2021 +0200
@@ -24,7 +24,7 @@
 
   $ cat >remote/.hg/hgrc <<EOF
   > [hooks]
-  > pretxnchangegroup.00-break-things="$RUNTESTDIR/testlib/wait-on-file" 10 "$SYNCFILE2" "$SYNCFILE1"
+  > pretxnchangegroup.00-break-things=sh "$RUNTESTDIR/testlib/wait-on-file" 10 "$SYNCFILE2" "$SYNCFILE1"
   > pretxnchangegroup.01-output-things=echo "some remote output to be forward to the closed pipe"
   > EOF