t3404: make tests more self-contained
commit31cd82752585b95e9682008d454fad7769c1f037
authorEric Sunshine <sunshine@sunshineco.com>
Sat, 24 Aug 2013 00:10:40 +0000 (23 20:10 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2013 06:43:28 +0000 (25 23:43 -0700)
treef607cce6d4d24a70c1080d50ae9529936e4ee7df
parent96cb27a9d2db3c01b8e296a0fbc1da1da09d1412
t3404: make tests more self-contained

As its very first action, t3404 installs (via set_fake_editor) a
specialized $EDITOR which simplifies automated 'rebase -i' testing. Many
tests rely upon this setting, thus tests which need a different editor
must take extra care upon completion to restore $EDITOR in order to
avoid breaking following tests. This places extra burden upon such tests
and requires that they undesirably have extra knowledge about
surrounding tests. Ease this burden by having each test install the
$EDITOR it requires, rather than relying upon a global setting.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3404-rebase-interactive.sh