tests/test-patch.t
branchstable
changeset 37872 6cc5d01a58a6
parent 37459 90c5ca718781
child 38314 1445b556e9d2
--- a/tests/test-patch.t	Wed Jun 06 12:53:26 2018 -0700
+++ b/tests/test-patch.t	Sun May 20 23:05:18 2018 -0400
@@ -92,7 +92,12 @@
 
 Error exit (issue4746)
 
-  $ hg import ../c/p --config ui.patch='sh -c "exit 1"'
+  $ cat >> exit1.py <<EOF
+  > 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]