]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5505-remote.sh
tests: use test_i18n* functions to suppress false positives
authorVasco Almeida <vascomalmeida@sapo.pt>
Fri, 17 Jun 2016 20:21:07 +0000 (20:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jun 2016 22:45:48 +0000 (15:45 -0700)
commit1edbaac3bbe1a55cf3450ae7a350b50826d5d283
tree8d96ba6ba90615e0c690b2e4cd4d9373ec66ee6f
parentab33a76ec5313b00d630a14d2a843cdb942ed2be
tests: use test_i18n* functions to suppress false positives

The test functions test_i18ncmp and test_i18ngrep pretend success if run
under GETTEXT_POISON. By using those functions to test output which is
correctly marked as translatable, enables one to detect if the strings
newly marked for translation are from plumbing output. If they are
indeed from plumbing, the test would fail, and the string should be
unmarked, since it is not seen by users.

Thus, it is productive to not have false positives when running the test
under GETTEXT_POISON. This commit replaces normal test functions by
their i18n aware variants in use-cases know to be correctly marked for
translation, suppressing false positives.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
21 files changed:
t/t0008-ignores.sh
t/t1300-repo-config.sh
t/t1307-config-blob.sh
t/t1308-config-set.sh
t/t1400-update-ref.sh
t/t2010-checkout-ambiguous.sh
t/t2018-checkout-branch.sh
t/t3200-branch.sh
t/t3201-branch-contains.sh
t/t3320-notes-merge-worktrees.sh
t/t5505-remote.sh
t/t5510-fetch.sh
t/t5523-push-upstream.sh
t/t5536-fetch-conflicts.sh
t/t6301-for-each-ref-errors.sh
t/t7063-status-untracked-cache.sh
t/t7102-reset.sh
t/t7400-submodule-basic.sh
t/t7403-submodule-sync.sh
t/t7406-submodule-update.sh
t/t7508-status.sh