mirror of
https://github.com/git/git.git
synced 2024-10-21 13:59:03 +02:00
0d75bfe67b
The GETTEXT_POISON=YesPlease compile-time testing option added in my bb946bba76 ("i18n: add GETTEXT_POISON to simulate unfriendly translator", 2011-02-22) has been slowly bitrotting as strings have been marked for translation, and new tests have been added without running it. I brought this up on the list ("[BUG] test suite broken with GETTEXT_POISON=YesPlease", [1]) asking whether this mode was useful at all anymore. At least one person occasionally uses it, and Lars Schneider offered to change one of the the Travis builds to run in this mode, so fix up the failing ones. My test setup runs most of the tests, with the notable exception of skipping all the p4 tests, so it's possible that there's still some lurking regressions I haven't fixed. 1. <CACBZZX62+acvi1dpkknadTL827mtCm_QesGSZ=6+UnyeMpg8+Q@mail.gmail.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
37 lines
800 B
Bash
Executable File
37 lines
800 B
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='test case exclude pathspec'
|
|
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success 'setup a submodule' '
|
|
test_create_repo pretzel &&
|
|
: >pretzel/a &&
|
|
git -C pretzel add a &&
|
|
git -C pretzel commit -m "add a file" -- a &&
|
|
git submodule add ./pretzel sub &&
|
|
git commit -a -m "add submodule" &&
|
|
git submodule deinit --all
|
|
'
|
|
|
|
cat <<EOF >expect
|
|
fatal: Pathspec 'sub/a' is in submodule 'sub'
|
|
EOF
|
|
|
|
test_expect_success 'error message for path inside submodule' '
|
|
echo a >sub/a &&
|
|
test_must_fail git add sub/a 2>actual &&
|
|
test_i18ncmp expect actual
|
|
'
|
|
|
|
cat <<EOF >expect
|
|
fatal: Pathspec '.' is in submodule 'sub'
|
|
EOF
|
|
|
|
test_expect_success 'error message for path inside submodule from within submodule' '
|
|
test_must_fail git -C sub add . 2>actual &&
|
|
test_i18ncmp expect actual
|
|
'
|
|
|
|
test_done
|