Mercurial > hg
comparison tests/test-patch.t @ 38292:6cc5d01a58a6 stable
tests: fix test-patch.t on pickier /bin/sh implementations
This is a graft of 0b39edeff033 and f44306940c94 from default because
I'm tired of seeing the FreeBSD build be red on stable. See those
revisions for details on what's going on here.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 20 May 2018 23:05:18 -0400 |
parents | 90c5ca718781 |
children | 1445b556e9d2 |
comparison
equal
deleted
inserted
replaced
38198:3c84493556db | 38292:6cc5d01a58a6 |
---|---|
90 | 90 |
91 | 91 |
92 | 92 |
93 Error exit (issue4746) | 93 Error exit (issue4746) |
94 | 94 |
95 $ hg import ../c/p --config ui.patch='sh -c "exit 1"' | 95 $ cat >> exit1.py <<EOF |
96 > import sys | |
97 > sys.exit(1) | |
98 > EOF | |
99 | |
100 $ hg import ../c/p --config ui.patch="\"$PYTHON\" \"`pwd`/exit1.py\"" | |
96 applying ../c/p | 101 applying ../c/p |
97 abort: patch command failed: exited with status 1 | 102 abort: patch command failed: exited with status 1 |
98 [255] | 103 [255] |
99 | 104 |
100 $ cd .. | 105 $ cd .. |