Mercurial > public > mercurial-scm > hg-stable
diff tests/test-git-export.t @ 49585: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 | 0492002560f3 |
children |
line wrap: on
line diff
--- a/tests/test-git-export.t Fri Nov 18 13:52:18 2022 +0000 +++ b/tests/test-git-export.t Fri Nov 18 13:47:29 2022 +0000 @@ -1,4 +1,5 @@ - $ hg init + $ hg init repo + $ cd repo $ echo start > start $ hg ci -Amstart adding start @@ -46,7 +47,7 @@ Cross and same-directory copies with a relative root: $ hg diff --git --root .. -r 1:tip - abort: .. not under root '$TESTTMP' + abort: .. not under root '$TESTTMP/repo' [255] $ hg diff --git --root doesnotexist -r 1:tip $ hg diff --git --root . -r 1:tip @@ -121,7 +122,7 @@ +copy2 $ hg diff --git --root ../.. -r 1:tip - abort: ../.. not under root '$TESTTMP' + abort: ../.. not under root '$TESTTMP/repo' [255] $ hg diff --git --root ../doesnotexist -r 1:tip $ hg diff --git --root .. -r 1:tip