Skip to content

Commit

Permalink
t3701: ensure correctly set up repository after skipped tests
Browse files Browse the repository at this point in the history
There are two tests that are skipped if file modes are not obeyed by the
file system. In this case, the subsequent test failed because the
repository was in an unexpected state. This corrects it.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed May 25, 2009
1 parent 7a26e65 commit 32a9023
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/t3701-add-interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ test_expect_success FILEMODE 'stage mode but not hunk' '

# end of tests disabled when filemode is not usable

test_expect_success 'setup again' '
git reset --hard &&
test_chmod +x file &&
echo content >>file
'

# Write the patch file with a new line at the top and bottom
cat >patch <<EOF
index 180b47c..b6f2c08 100644
Expand Down

0 comments on commit 32a9023

Please sign in to comment.