From: Bruno Haible Date: Mon, 2 Jun 2025 11:05:35 +0000 (+0200) Subject: tests: Fix test failure when rxgettext is not installed. X-Git-Tag: v0.26~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef1d9ee84ddf9c6d3165c5c58a896be040209ca;p=thirdparty%2Fgettext.git tests: Fix test failure when rxgettext is not installed. * gettext-tools/tests/format-ruby-3: Skip test if rxgettext is not installed. --- diff --git a/gettext-tools/tests/format-ruby-3 b/gettext-tools/tests/format-ruby-3 index 320e1293d..dd6548fb2 100755 --- a/gettext-tools/tests/format-ruby-3 +++ b/gettext-tools/tests/format-ruby-3 @@ -3,6 +3,9 @@ # Test heuristic recognition of Ruby format strings like "100% complete". +(rxgettext --version) >/dev/null 2>/dev/null \ + || { echo "Skipping test: rxgettext not found"; Exit 77; } + cat <<\EOF > f-r-3.rb gettext("Test 1a is 100% complete"); gettext("Test 2a from 0% complete to 100% complete");