OSDN Git Service

Tests: clean up and document submodule helpers
authorJonathan Tan <jonathantanmy@google.com>
Tue, 7 Nov 2017 18:45:08 +0000 (10:45 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Nov 2017 01:05:39 +0000 (10:05 +0900)
commitd3b5a4974d030262fb3d23e3be8a4cc997679b35
tree057aa69b89bc94d3c3d5f9bfc7204c09e0ad2413
parent7668cbc60578f99a4c048f8f8f38787930b8147b
Tests: clean up and document submodule helpers

Factor out the commonalities from test_submodule_switch() and
test_submodule_forced_switch() in lib-submodule-update.sh, and document
their usage.

This also makes explicit (through the KNOWN_FAILURE_FORCED_SWITCH_TESTS
variable) the fact that, currently, all functionality tested using
test_submodule_forced_switch() do not correctly handle the situation in
which a submodule is replaced with an ordinary directory.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-submodule-update.sh