X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft3701-add-interactive.sh;h=7ad8465f8f89656bf0ce57feb45e12bc9cea5d65;hb=48c250a121a425a1860226b6a7061aecfbab5246;hp=d86bc81abfd954194c245e7e180a23f2b9b7c840;hpb=ef6a243e9518938e9efd3941a6e5eace3fc66081;p=git.git diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh index d86bc81ab..7ad8465f8 100755 --- a/t/t3701-add-interactive.sh +++ b/t/t3701-add-interactive.sh @@ -4,7 +4,7 @@ test_description='add -i basic tests' . ./test-lib.sh if ! test_have_prereq PERL; then - say 'skipping git add -i tests, perl not available' + skip_all='skipping git add -i tests, perl not available' test_done fi @@ -154,7 +154,7 @@ rm -f .gitignore if test "$(git config --bool core.filemode)" = false then - say 'skipping filemode tests (filesystem does not properly support modes)' + say '# skipping filemode tests (filesystem does not properly support modes)' else test_set_prereq FILEMODE fi @@ -228,6 +228,26 @@ test_expect_success 'add first line works' ' test_cmp expected diff ' +cat >expected <non-empty && + git add non-empty && + git commit -m non-empty && + rm non-empty && + echo y | git add -p non-empty && + git diff --cached >diff && + test_cmp expected diff +' + cat >expected <