From eaf0551d56b4fd3a97c8d0f5ded1ea6e891f9005 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sun, 9 Aug 2009 04:37:52 -0400 Subject: tests: use "$TEST_DIRECTORY" instead of ".." The $TEST_DIRECTORY variable allows tests to find the top-level test directory regardless of the current working directory. In the past, this has been used to accomodate tests which change directories, but it is also the first step to being able to move trash directories outside of the $TEST_DIRECTORY hierarchy. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- t/t4020-diff-external.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t4020-diff-external.sh') diff --git a/t/t4020-diff-external.sh b/t/t4020-diff-external.sh index 4ea42e00da..a7602cf923 100755 --- a/t/t4020-diff-external.sh +++ b/t/t4020-diff-external.sh @@ -166,7 +166,7 @@ test_expect_success 'diff --cached' ' git update-index --assume-unchanged file && echo second >file && git diff --cached >actual && - test_cmp ../t4020/diff.NUL actual + test_cmp "$TEST_DIRECTORY"/t4020/diff.NUL actual ' test_done -- cgit v1.3-5-g9baa