]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Fix a test failure.
authorBruno Haible <bruno@clisp.org>
Mon, 16 Sep 2024 14:00:53 +0000 (16:00 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 16 Sep 2024 14:00:53 +0000 (16:00 +0200)
* gettext-tools/tests/xgettext-ruby-2: Skip the test if 'rxgettext' is not
found.

gettext-tools/tests/xgettext-ruby-2

index 0b6ad26318f3824061c8077d8fe2e6c56f63b835..26160b9d6ee3d983f49e736c6cbb783210dcae5d 100755 (executable)
@@ -3,6 +3,9 @@
 
 # Test Ruby support: --add-comments option, string concatenation.
 
+(rxgettext --version) >/dev/null 2>/dev/null \
+  || { echo "Skipping test: rxgettext not found"; Exit 77; }
+
 cat <<\EOF > xg-ru-2.rb
 # a
 s = # b