tests: fix negated test_i18ngrep calls
The helper function test_i18ngrep pretends that it found the expected results when it is running under GETTEXT_POISON. For this reason, it must not be used negated like so ! test_i18ngrep foo bar because the test case would fail under GETTEXT_POISON. The function offers a special syntax to test that a pattern is *not* found: test_i18ngrep ! foo bar Convert incorrect uses to this syntax. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
67de23ddb1
commit
41ca19b6a6
@ -404,7 +404,7 @@ test_expect_success 'submit --prepare-p4-only' '
|
||||
git p4 submit --prepare-p4-only >out &&
|
||||
test_i18ngrep "prepared for submission" out &&
|
||||
test_i18ngrep "must be deleted" out &&
|
||||
! test_i18ngrep "everything below this line is just the diff" out
|
||||
test_i18ngrep ! "everything below this line is just the diff" out
|
||||
) &&
|
||||
(
|
||||
cd "$cli" &&
|
||||
|
||||
Reference in New Issue
Block a user