# HG changeset patch # User Augie Fackler # Date 2018-05-19 19:15:51 # Node ID 0b39edeff0332b82c6feb46adbdfce9181ad544d # Parent f3776f70985e7e1591cb182d39e03ce387d9140b tests: fix test-patch.t on pickier /bin/sh implementations FreeBSD sh(1) doesn't accept -d, so we weren't testing what we expected there. Let's just use a simple Python script instead. Differential Revision: https://phab.mercurial-scm.org/D3620 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 @@ Clone and apply patch: 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]