t: mark several submodule merging tests as fixed under merge-ort
merge-ort handles submodules (and directory/file conflicts in general)
differently than merge-recursive does; it basically puts all the special
handling for different filetypes into one place in the codebase instead
of needing special handling for different filetypes in many different
code paths. This one code path in merge-ort could perhaps use some work
still (there are still test_expect_failure cases in the testsuite), but
it passes all the tests that merge-recursive does as well as 12
additional ones that merge-recursive fails. Mark those 12 tests as
test_expect_success under merge-ort.
Signed-off-by: Elijah Newren <newren@gmail.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committedMar 20, 2021 at 00:03 UTCaa2faac03ad646873ebac2b230581d1d26dd1b99
5 files changed+22-9
t/t3512-cherry-pick-submodule.sh
+5-2
index 822f2d4bfb..c657840db3 100755--- a/t/t3512-cherry-pick-submodule.sh+++ b/t/t3512-cherry-pick-submodule.sh@@ -8,8 +8,11 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . ./test-lib.sh . "$TEST_DIRECTORY"/lib-submodule-update.sh-KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1-KNOWN_FAILURE_NOFF_MERGE_ATTEMPTS_TO_MERGE_REMOVED_SUBMODULE_FILES=1+if test "$GIT_TEST_MERGE_ALGORITHM" != ort+then+ KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1+ KNOWN_FAILURE_NOFF_MERGE_ATTEMPTS_TO_MERGE_REMOVED_SUBMODULE_FILES=1+fi test_submodule_switch "cherry-pick" test_expect_success 'unrelated submodule/file conflict is ignored' '
t/t3513-revert-submodule.sh
+4-1
index a759f12cbb..74cd96e582 100755--- a/t/t3513-revert-submodule.sh+++ b/t/t3513-revert-submodule.sh@@ -30,7 +30,10 @@ git_revert () { git revert HEAD }-KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1+if test "$GIT_TEST_MERGE_ALGORITHM" != ort+then+ KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR=1+fi test_submodule_switch_func "git_revert" test_done