test: make sure we hit the SIGPIPE in test-transaction-rollback-on-sigpipe
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 02 Jul 2021 20:53:23 +0200
changeset 47556 640fdb7fd67b
parent 47555 452795b0b69a
child 47557 ed81f2be5527
test: make sure we hit the SIGPIPE in test-transaction-rollback-on-sigpipe With a coming change, we might not hit the sig pipe without issue and extra line of output. We do this early to make the next change clearer. Differential Revision: https://phab.mercurial-scm.org/D10946
tests/test-transaction-rollback-on-sigpipe.t
--- a/tests/test-transaction-rollback-on-sigpipe.t	Fri Jul 02 20:22:56 2021 +0200
+++ b/tests/test-transaction-rollback-on-sigpipe.t	Fri Jul 02 20:53:23 2021 +0200
@@ -47,7 +47,8 @@
 
   $ cat >remote/.hg/hgrc <<EOF
   > [hooks]
-  > pretxnchangegroup.break-things=$hook_script
+  > pretxnchangegroup.00-break-things=$hook_script
+  > pretxnchangegroup.01-output-things=echo "some remote output to be forward to the closed pipe"
   > EOF
 
   $ hg --cwd ./remote tip -T '{node|short}\n'