git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t915{0,1}: use $TEST_DIRECTORY

From
Jeff King <peff@peff.net>
Date
Oct 30, 2009, 20:10 UTC
Message-ID
<20091030201017.GA26465@coredump.intra.peff.net>

Because --root can put our trash directories elsewhere, using ".." may not always work.

Signed-off-by: Jeff King <peff@peff.net>
---
 t/t9150-svk-mergetickets.sh |    3 ++-
 t/t9151-svn-mergeinfo.sh    |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/t/t9150-svk-mergetickets.sh b/t/t9150-svk-mergetickets.sh
index 8000c34..dd0c2ba 100644
--- a/t/t9150-svk-mergetickets.sh
+++ b/t/t9150-svk-mergetickets.sh
@@ -8,7 +8,8 @@ test_description='git-svn svk merge tickets'
 . ./lib-git-svn.sh
 
 test_expect_success 'load svk depot' "
-	svnadmin load -q '$rawsvnrepo' < '../t9150/svk-merge.dump' &&
+	svnadmin load -q '$rawsvnrepo' \
+	  < '$TEST_DIRECTORY/t9150/svk-merge.dump' &&
 	git svn init --minimize-url -R svkmerge \
 	  -T trunk -b branches '$svnrepo' &&
 	git svn fetch --all
diff --git a/t/t9151-svn-mergeinfo.sh b/t/t9151-svn-mergeinfo.sh
index 7eb36e5..9bee516 100644
--- a/t/t9151-svn-mergeinfo.sh
+++ b/t/t9151-svn-mergeinfo.sh
@@ -8,7 +8,8 @@ test_description='git-svn svn mergeinfo properties'
 . ./lib-git-svn.sh
 
 test_expect_success 'load svn dump' "
-	svnadmin load -q '$rawsvnrepo' < '../t9151/svn-mergeinfo.dump' &&
+	svnadmin load -q '$rawsvnrepo' \
+	  < '$TEST_DIRECTORY/t9151/svn-mergeinfo.dump' &&
 	git svn init --minimize-url -R svnmerge \
 	  -T trunk -b branches '$svnrepo' &&
 	git svn fetch --all
-- 
1.6.5.2.224.g22719.dirty
Message 1 of 1 in “t915{0,1}: use $TEST_DIRECTORY”
  1. t915{0,1}: use $TEST_DIRECTORYJeff King, Oct 30, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.