tests/test-editor-filename.t
branchstable
changeset 49585 55c6ebd11cb9
parent 45892 ac362d5a7893
--- 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.