--- a/tests/test-ssh.t Fri Feb 10 18:17:20 2017 +0100
+++ b/tests/test-ssh.t Fri Feb 10 18:20:58 2017 +0100
@@ -548,3 +548,17 @@
abort: push failed on remote
[255]
+abort during pull is properly reported as such
+
+ $ echo morefoo >> ../remote/foo
+ $ hg -R ../remote commit --message "more foo to be pulled"
+ $ cat >> ../remote/.hg/hgrc << EOF
+ > [extensions]
+ > crash = ${TESTDIR}/crashgetbundler.py
+ > EOF
+ $ hg --config ui.ssh="python $TESTDIR/dummyssh" pull
+ pulling from ssh://user@dummy/remote
+ searching for changes
+ remote: abort: this is an exercise
+ abort: pull failed on remote
+ [255]