"Phillip Wood via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: Phillip Wood <phillip.wood@xxxxxxxxxxxxx> > > As $EDITOR is exported setting it in one test affects all subsequent > tests. Avoid this by always setting it in a subshell and remove a > couple of unnecessary call to set_fake_editor. Unnecessary because it reuses the one that was established in the previous test [1]? Or unnecessary because we know "rebase -i" would fail even before it gets to the point of asking an editor to tweak the todo sequence [2]? Or something else? If [1], it makes us wonder what happens when an earlier test gets skipped. If [2], it makes us wonder what happens when "rebase -i" fails to fail as expected (does the test correctly diagnose it as a new breakage in "rebase -i"?). > @@ -102,7 +106,6 @@ test_expect_success 'rebase -i --onto main...side' ' > git checkout side && > git reset --hard K && > > - set_fake_editor && > test_must_fail git rebase -i --onto main...side J > ' This is one of the "removing" instances. > @@ -187,8 +194,12 @@ test_expect_success 'rebase -i --keep-base main from side' ' > git checkout side && > git reset --hard K && > > - set_fake_editor && > test_must_fail git rebase -i --keep-base main > ' And this is the other one. Thanks.