Rename the test trash directory to contain spaces.
authorBryan Donlan <bdonlan@fushizen.net>
Sun, 4 May 2008 05:38:00 +0000 (01:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 May 2008 21:37:51 +0000 (14:37 -0700)
In order to help prevent regressions in the future, rename the trash directory
for all tests to contain spaces. This patch also corrects two failures that
were caused or exposed by this change.

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/.gitignore
t/t6200-fmt-merge-msg.sh
t/test-lib.sh

index fad67c0..11ffd91 100644 (file)
@@ -1 +1 @@
-trash
+/trash directory
index 526d7d1..9c0b926 100755 (executable)
@@ -82,14 +82,14 @@ test_expect_success 'merge-msg test #1' '
        git diff actual expected
 '
 
-cat >expected <<\EOF
-Merge branch 'left' of ../trash
+cat >expected <<EOF
+Merge branch 'left' of ../$test
 EOF
 
 test_expect_success 'merge-msg test #2' '
 
        git checkout master &&
-       git fetch ../trash left &&
+       git fetch ../"$test" left &&
 
        git fmt-merge-msg <.git/FETCH_HEAD >actual &&
        git diff actual expected
index 04e098b..5002fb0 100644 (file)
@@ -411,14 +411,14 @@ fi
 . ../GIT-BUILD-OPTIONS
 
 # Test repository
-test=trash
+test="trash directory"
 rm -fr "$test" || {
        trap - exit
        echo >&5 "FATAL: Cannot prepare test area"
        exit 1
 }
 
-test_create_repo $test
+test_create_repo "$test"
 cd "$test"
 
 this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$')