From: Matheus Tavares Date: Mon, 15 Aug 2022 01:06:36 +0000 (-0300) Subject: t0021: avoid grepping for a Perl-specific string at filter output X-Git-Tag: v2.38.0-rc0~58^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bed8947751b8057bb6714c53eb15a098b62c65da;p=thirdparty%2Fgit.git t0021: avoid grepping for a Perl-specific string at filter output This test sets the t0021/rot13-filter.pl script as a long-running process filter for a git checkout command. It then expects the filter to fail producing a specific error message at stderr. In the following commits we are going to replace the script with a C test-tool helper, but the test currently expects the error message in a Perl-specific format. That is, when you call `die ` in Perl, it emits " at - line 1." In preparation for the conversion, let's avoid the Perl-specific part and only grep for itself. Signed-off-by: Matheus Tavares Signed-off-by: Junio C Hamano --- diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh index 1c840348bd..963b66e08c 100755 --- a/t/t0021-conversion.sh +++ b/t/t0021-conversion.sh @@ -735,7 +735,7 @@ test_expect_success PERL 'process filter should restart after unexpected write f rm -f debug.log && git checkout --quiet --no-progress . 2>git-stderr.log && - grep "smudge write error at" git-stderr.log && + grep "smudge write error" git-stderr.log && test_i18ngrep "error: external filter" git-stderr.log && cat >expected.log <<-EOF &&