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>
Alex Riesen committed
May 18, 2008 at 17:27 UTC
2a028a0cabefed8efcf41499e330adfc20f433f8
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -419,7 +419,7 @@ rm -fr "$test" || {
419
}
420
421
test_create_repo "$test"
422
-cd "$test"
422
+cd "$test" || exit 1
423
424
this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$')
425
for skp in $GIT_SKIP_TESTS