@matheusbsbs / matheus-bagliano / commits / 621fd7a287
Fork 0

Turn setup code in t2007-checkout-symlink.sh into a test

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>

Ævar Arnfjörð Bjarmason committed May 7, 2010 at 19:37 UTC 621fd7a287dbb9279e18a6932c7037a8c4d224ef
1 file changed +4 -2
t/t2007-checkout-symlink.sh
+4 -2
@@ -44,8 +44,10 @@ test_expect_success 'switch from symlink to dir' '
44
45 '
46
47 -rm -fr frotz xyzzy nitfol &&
48 -git checkout -f master || exit
47 +test_expect_success 'Remove temporary directories & switch to master' '
48 + rm -fr frotz xyzzy nitfol &&
49 + git checkout -f master
50 +'
51
52 test_expect_success 'switch from dir to symlink' '
53