@@ -113,7 +113,7 @@ test_expect_success 'merging should conflict for non fast-forward' '
113113 git checkout -b test-nonforward-a b &&
114114 if test "$GIT_TEST_MERGE_ALGORITHM" = ort
115115 then
116- test_must_fail git merge c >actual &&
116+ test_must_fail git merge c 2 >actual &&
117117 sub_expect="go to submodule (sub), and either merge commit $(git -C sub rev-parse --short sub-c)" &&
118118 grep "$sub_expect" actual
119119 else
@@ -154,9 +154,9 @@ test_expect_success 'merging should conflict for non fast-forward (resolution ex
154154 git rev-parse --short sub-d > ../expect) &&
155155 if test "$GIT_TEST_MERGE_ALGORITHM" = ort
156156 then
157- test_must_fail git merge c >actual &&
157+ test_must_fail git merge c >actual 2>sub-actual &&
158158 sub_expect="go to submodule (sub), and either merge commit $(git -C sub rev-parse --short sub-c)" &&
159- grep "$sub_expect" actual
159+ grep "$sub_expect" sub- actual
160160 else
161161 test_must_fail git merge c 2> actual
162162 fi &&
@@ -181,9 +181,9 @@ test_expect_success 'merging should fail for ambiguous common parent' '
181181 ) &&
182182 if test "$GIT_TEST_MERGE_ALGORITHM" = ort
183183 then
184- test_must_fail git merge c >actual &&
184+ test_must_fail git merge c >actual 2>sub-actual &&
185185 sub_expect="go to submodule (sub), and either merge commit $(git -C sub rev-parse --short sub-c)" &&
186- grep "$sub_expect" actual
186+ grep "$sub_expect" sub- actual
187187 else
188188 test_must_fail git merge c 2> actual
189189 fi &&
@@ -227,7 +227,7 @@ test_expect_success 'merging should fail for changes that are backwards' '
227227 git commit -a -m "f" &&
228228
229229 git checkout -b test-backward e &&
230- test_must_fail git merge f >actual &&
230+ test_must_fail git merge f 2 >actual &&
231231 if test "$GIT_TEST_MERGE_ALGORITHM" = ort
232232 then
233233 sub_expect="go to submodule (sub), and either merge commit $(git -C sub rev-parse --short sub-d)" &&
@@ -535,7 +535,7 @@ test_expect_success 'merging should fail with no merge base' '
535535 git checkout -b b init &&
536536 git add sub &&
537537 git commit -m "b" &&
538- test_must_fail git merge a >actual &&
538+ test_must_fail git merge a 2 >actual &&
539539 if test "$GIT_TEST_MERGE_ALGORITHM" = ort
540540 then
541541 sub_expect="go to submodule (sub), and either merge commit $(git -C sub rev-parse --short HEAD^1)" &&
0 commit comments