Re: [PATCH 12/15] gettext tests: don't ignore "test-tool regex" exit code
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 2, 2022, 23:20 UTC
- Message-ID
- <xmqq5yowgcvg.fsf@gitster.g>
- In-Reply-To
- <patch-12.15-f3cc5bc7eb9-20220302T171755Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 7 quoted lines
> -test_have_prereq GETTEXT_LOCALE && > -test-tool regex "HALLÓ" "Halló" ICASE && > -test_set_prereq REGEX_LOCALE > +test_expect_success GETTEXT_LOCALE 'setup REGEX_LOCALE prerequisite' ' > + if test-tool regex "HALLÓ" "Halló" ICASE > + then > + test_set_prereq REGEX_LOCALE
This looks sensible but
> + else > + test_must_fail test-tool regex "HALLÓ" "Halló" ICASE
this side looks puzzling. I think this way to avoid counting abort etc as passing "must fail" test would be the least bad that we can do.
Nicely done.
> + fi > +'