diff tests/test-commit.t @ 20859:e259d4c462b5 stable

tests: use TESTTMP instead of TESTDIR In 57d0c8c3b947, f042d4b263f4, 1e686e55780c, and 5d22cadd1938, new tests were added that used TESTDIR instead of TESTTMP thereby leading to polluting the working directory with these temporary files. Now, we use TESTTMP so that they will be cleaned up properly.
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 28 Mar 2014 14:33:27 -0500
parents f042d4b263f4
children 81d6dc8c3c63
line wrap: on
line diff
--- a/tests/test-commit.t	Sat Mar 29 01:20:07 2014 +0900
+++ b/tests/test-commit.t	Fri Mar 28 14:33:27 2014 -0500
@@ -298,7 +298,7 @@
   $ echo 'sub = sub' > .hgsub
   $ hg add .hgsub
 
-  $ cat > $TESTDIR/editor.sh <<EOF
+  $ cat > $TESTTMP/editor.sh <<EOF
   > echo "==== before editing:"
   > cat \$1
   > echo "===="
@@ -306,7 +306,7 @@
   > EOF
 
   $ rm -f .hg/last-message.txt
-  $ HGEDITOR="sh $TESTDIR/editor.sh" hg commit -S -q
+  $ HGEDITOR="sh $TESTTMP/editor.sh" hg commit -S -q
   ==== before editing: