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