diff tests/test-diff-ignore-whitespace.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 da07367d683b
children
line wrap: on
line diff
--- a/tests/test-diff-ignore-whitespace.t	Fri Nov 18 13:52:18 2022 +0000
+++ b/tests/test-diff-ignore-whitespace.t	Fri Nov 18 13:47:29 2022 +0000
@@ -5,7 +5,8 @@
   $ echo '[alias]' >> $HGRCPATH
   $ echo 'ndiff = diff --nodates' >> $HGRCPATH
 
-  $ hg init
+  $ hg init repo
+  $ cd repo
   $ printf 'hello world\ngoodbye world\n' >foo
   $ hg ci -Amfoo -ufoo
   adding foo