Tests: clean up submodule recursive helpers
commita05004471630ecc97dcb84cde2a1616ac9a3c477
authorJonathan Tan <jonathantanmy@google.com>
Tue, 21 Nov 2017 22:12:56 +0000 (21 14:12 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Nov 2017 04:31:56 +0000 (22 13:31 +0900)
treefcafd88e082d8b63987bae09c9b468a655bd0f2c
parentd3b5a4974d030262fb3d23e3be8a4cc997679b35
Tests: clean up submodule recursive helpers

This continues the work in commit d3b5a49 ("Tests: clean up and document
submodule helpers", 2017-11-08).

Factor out the commonalities from
test_submodule_switch_recursing_with_args() and
test_submodule_forced_switch_recursing_with_args() in
lib-submodule-update.sh, and document their usage. Some tests differ
slightly in their test assertions; I have used the superset of those
assertions in that case.

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