Skip to content

Commit

Permalink
Ensure that a test is run in the trash directory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed May 19, 2008
1 parent 377d9c4 commit 2a028a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a028a0

Please sign in to comment.