D3620: tests: fix test-patch.t on picker /bin/sh implementations
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat May 19 15:49:57 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0b39edeff033: tests: fix test-patch.t on pickier /bin/sh implementations (authored by durin42, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D3620?vs=8792&id=8822#toc
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3620?vs=8792&id=8822
REVISION DETAIL
https://phab.mercurial-scm.org/D3620
AFFECTED FILES
tests/test-patch.t
CHANGE DETAILS
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 <<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]
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list