diff tests/test-editor-filename.t @ 49621:55c6ebd11cb9 stable

tests: run many tests in $TESTTMP/repo instead of $TESTTMP This is useful so we can store other files in $TESTTMP (in particular tests that use docket files (nodemap, dirstate-v2) keep file uids in $TESTTMP/UID)
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Fri, 18 Nov 2022 13:47:29 +0000
parents ac362d5a7893
children
line wrap: on
line diff
--- a/tests/test-editor-filename.t	Fri Nov 18 13:52:18 2022 +0000
+++ b/tests/test-editor-filename.t	Fri Nov 18 13:47:29 2022 +0000
@@ -1,6 +1,7 @@
 Test temp file used with an editor has the expected suffix.
 
-  $ hg init
+  $ hg init repo
+  $ cd repo
 
 Create an editor that writes its arguments to stdout and set it to $HGEDITOR.
 
@@ -9,7 +10,7 @@
   > exit 1
   > EOF
   $ hg add editor.sh
-  $ HGEDITOR="sh $TESTTMP/editor.sh"
+  $ HGEDITOR="sh $TESTTMP/repo/editor.sh"
   $ export HGEDITOR
 
 Verify that the path for a commit editor has the expected suffix.