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>
This commit is contained in:
parent
377d9c409f
commit
2a028a0cab
@ -419,7 +419,7 @@ rm -fr "$test" || {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_create_repo "$test"
|
test_create_repo "$test"
|
||||||
cd "$test"
|
cd "$test" || exit 1
|
||||||
|
|
||||||
this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$')
|
this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$')
|
||||||
for skp in $GIT_SKIP_TESTS
|
for skp in $GIT_SKIP_TESTS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user