summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-05-18 15:27:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-19 04:39:22 (GMT)
commit2a028a0cabefed8efcf41499e330adfc20f433f8 (patch)
tree46168b28521066fba95ab690c8dd1ab1b976f7e3 /t
parent377d9c409ffe0f0d994b929aeb94716139207b9d (diff)
downloadgit-2a028a0cabefed8efcf41499e330adfc20f433f8.zip
git-2a028a0cabefed8efcf41499e330adfc20f433f8.tar.gz
git-2a028a0cabefed8efcf41499e330adfc20f433f8.tar.bz2
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 <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 5002fb0..d1018c9 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