Code

Turn setup code in t2007-checkout-symlink.sh into a test
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 7 May 2010 19:37:03 +0000 (19:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 8 May 2010 04:36:38 +0000 (21:36 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2007-checkout-symlink.sh

index 20f33436d00077b64dcc855fc263cd5d0efcca38..27e2127afeeb0dd462a686254e60be74e9dd9c28 100755 (executable)
@@ -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' '