[PATCH 4/6] Turn setup code in t2007-checkout-symlink.sh into a test
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 7, 2010, 19:37 UTC
- Message-ID
- <1273261025-31523-4-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1273261025-31523-1-git-send-email-avarab@gmail.com>
Previously the test would print to stdout which interfered with the TAP output. Now this scaffolding code is just a normal test.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/t2007-checkout-symlink.sh | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/t/t2007-checkout-symlink.sh b/t/t2007-checkout-symlink.sh index 616ca2a..05cc8fd 100755 --- a/t/t2007-checkout-symlink.sh +++ b/t/t2007-checkout-symlink.sh @@ -44,8 +44,10 @@ test_expect_success 'switch from symlink to dir' ' ' -rm -fr frotz xyzzy nitfol && -git checkout -f master || exit +test_expect_success 'Remove temporary directories & switch to master' ' + rm -fr frotz xyzzy nitfol && + git checkout -f master +' test_expect_success 'switch from dir to symlink' '
-- 1.7.1.dirty