##// END OF EJS Templates
tests: use TESTTMP instead of TESTDIR...
Sean Farley -
r20859:e259d4c4 stable
parent child Browse files
Show More
@@ -298,7 +298,7 b' test saving last-message.txt'
298 298 $ echo 'sub = sub' > .hgsub
299 299 $ hg add .hgsub
300 300
301 $ cat > $TESTDIR/editor.sh <<EOF
301 $ cat > $TESTTMP/editor.sh <<EOF
302 302 > echo "==== before editing:"
303 303 > cat \$1
304 304 > echo "===="
@@ -306,7 +306,7 b' test saving last-message.txt'
306 306 > EOF
307 307
308 308 $ rm -f .hg/last-message.txt
309 $ HGEDITOR="sh $TESTDIR/editor.sh" hg commit -S -q
309 $ HGEDITOR="sh $TESTTMP/editor.sh" hg commit -S -q
310 310 ==== before editing:
311 311
312 312
@@ -107,7 +107,7 b' check histedit_source'
107 107
108 108 check saving last-message.txt
109 109
110 $ cat > $TESTDIR/abortfolding.py <<EOF
110 $ cat > $TESTTMP/abortfolding.py <<EOF
111 111 > from mercurial import util
112 112 > def abortfolding(ui, repo, hooktype, **kwargs):
113 113 > ctx = repo[kwargs.get('node')]
@@ -117,10 +117,10 b' check saving last-message.txt'
117 117 > EOF
118 118 $ cat > .hg/hgrc <<EOF
119 119 > [hooks]
120 > pretxncommit.abortfolding = python:$TESTDIR/abortfolding.py:abortfolding
120 > pretxncommit.abortfolding = python:$TESTTMP/abortfolding.py:abortfolding
121 121 > EOF
122 122
123 $ cat > $TESTDIR/editor.sh << EOF
123 $ cat > $TESTTMP/editor.sh << EOF
124 124 > echo "==== before editing"
125 125 > cat \$1
126 126 > echo "===="
@@ -128,7 +128,7 b' check saving last-message.txt'
128 128 > EOF
129 129
130 130 $ rm -f .hg/last-message.txt
131 $ HGEDITOR="sh $TESTDIR/editor.sh" hg histedit 6de59d13424a --commands - 2>&1 <<EOF | fixbundle
131 $ HGEDITOR="sh $TESTTMP/editor.sh" hg histedit 6de59d13424a --commands - 2>&1 <<EOF | fixbundle
132 132 > pick 6de59d13424a f
133 133 > fold 9c277da72c9b d
134 134 > EOF
@@ -144,7 +144,7 b' Test saving last-message.txt:'
144 144
145 145 $ hg qrefresh -m "original message"
146 146
147 $ cat > $TESTDIR/commitfailure.py <<EOF
147 $ cat > $TESTTMP/commitfailure.py <<EOF
148 148 > from mercurial import util
149 149 > def reposetup(ui, repo):
150 150 > class commitfailure(repo.__class__):
@@ -155,10 +155,10 b' Test saving last-message.txt:'
155 155
156 156 $ cat > .hg/hgrc <<EOF
157 157 > [extensions]
158 > commitfailure = $TESTDIR/commitfailure.py
158 > commitfailure = $TESTTMP/commitfailure.py
159 159 > EOF
160 160
161 $ cat > $TESTDIR/editor.sh << EOF
161 $ cat > $TESTTMP/editor.sh << EOF
162 162 > echo "==== before editing"
163 163 > cat \$1
164 164 > echo "===="
@@ -166,7 +166,7 b' Test saving last-message.txt:'
166 166 > EOF
167 167
168 168 $ rm -f .hg/last-message.txt
169 $ HGEDITOR="sh $TESTDIR/editor.sh" hg qfold -e p3
169 $ HGEDITOR="sh $TESTTMP/editor.sh" hg qfold -e p3
170 170 ==== before editing
171 171 original message====
172 172 refresh interrupted while patch was popped! (revert --all, qpush to recover)
@@ -239,7 +239,7 b' Test saving last-message.txt'
239 239 $ hg init repo
240 240 $ cd repo
241 241
242 $ cat > $TESTDIR/commitfailure.py <<EOF
242 $ cat > $TESTTMP/commitfailure.py <<EOF
243 243 > from mercurial import util
244 244 > def reposetup(ui, repo):
245 245 > class commitfailure(repo.__class__):
@@ -249,10 +249,10 b' Test saving last-message.txt'
249 249 > EOF
250 250 $ cat > .hg/hgrc <<EOF
251 251 > [extensions]
252 > commitfailure = $TESTDIR/commitfailure.py
252 > commitfailure = $TESTTMP/commitfailure.py
253 253 > EOF
254 254
255 $ cat > $TESTDIR/editor.sh << EOF
255 $ cat > $TESTTMP/editor.sh << EOF
256 256 > echo "==== before editing"
257 257 > cat \$1
258 258 > echo "===="
@@ -260,7 +260,7 b' Test saving last-message.txt'
260 260 > EOF
261 261
262 262 $ rm -f .hg/last-message.txt
263 $ HGEDITOR="sh $TESTDIR/editor.sh" hg qnew -e patch
263 $ HGEDITOR="sh $TESTTMP/editor.sh" hg qnew -e patch
264 264 ==== before editing
265 265 ====
266 266 abort: emulating unexpected abort
General Comments 0
You need to be logged in to leave comments. Login now