From: Alex Riesen Date: Sun, 18 May 2008 15:27:00 +0000 (+0200) Subject: Ensure that a test is run in the trash directory X-Git-Tag: v1.5.6-rc0~44 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a028a0cabefed8efcf41499e330adfc20f433f8;p=git.git Ensure that a test is run in the trash directory Exit with error if cd into the "trash directory" failed (error already reported, so just exit). Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 5002fb04b..d1018c99c 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -419,7 +419,7 @@ rm -fr "$test" || { } test_create_repo "$test" -cd "$test" +cd "$test" || exit 1 this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$') for skp in $GIT_SKIP_TESTS