Patchwork D3620: tests: fix test-patch.t on picker /bin/sh implementations

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:49 p.m.
Message ID <0fc2258f51dc96d8d5232da7f24ea01b@localhost.localdomain>
Download mbox | patch
Permalink /patch/31738/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:49 p.m.
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




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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]