diff --git a/tests/test-patch.t b/tests/test-patch.t --- a/tests/test-patch.t +++ b/tests/test-patch.t @@ -92,7 +92,12 @@ Error exit (issue4746) - $ hg import ../c/p --config ui.patch='sh -c "exit 1"' + $ cat >> exit1.py < import sys + > sys.exit(1) + > EOF + + $ hg import ../c/p --config ui.patch="$PYTHON '`pwd`/exit1.py'" applying ../c/p abort: patch command failed: exited with status 1 [255]