t2405: clarify test descriptions and simplify test
commit129510a0672a7f9fd6c1a2d1d6fa36a17ffb6d1c
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Tue, 21 Jan 2020 15:01:16 +0000 (21 15:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jan 2020 21:37:04 +0000 (22 13:37 -0800)
tree0d5ed7b383224c057e13a4b653bd463c8730d1a1
parent4eaadc8493704357a4fac8d7dc8207340aa79019
t2405: clarify test descriptions and simplify test

When 'checkout --to' functionality was moved to 'worktree add', tests were adapted
in f194b1ef6e (tests: worktree: retrofit "checkout --to" tests for "worktree add",
2015-07-06).

The calls were changed to 'worktree add' in this test (then t7410), but the test
descriptions were not updated, keeping 'checkout' instead of using the new
terminology (linked worktrees).

Also, in the test each worktree is created in
$TRASH_DIRECTORY/<leading-directory>/main, where the name of <leading-directory>
carries some information about what behavior each test verifies. This directory
structure is not mandatory for the tests; the worktrees can live next to one
another in the trash directory.

Clarify the tests by using the right terminology, and remove the unnecessary
leading directories such that all superproject worktrees are directly next to one
another in the trash directory.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2405-worktree-submodule.sh