Skip to content

Commit

Permalink
Turn setup code in t2007-checkout-symlink.sh into a test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ævar Arnfjörð Bjarmason authored and Junio C Hamano committed May 8, 2010
1 parent 9d488eb commit 621fd7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/t2007-checkout-symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' '
Expand Down

0 comments on commit 621fd7a

Please sign in to comment.