tests: test_dist: filter out harmless xgettext warning

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-09-14 09:57:23 -04:00
parent e513422166
commit 080e84517e

View File

@ -45,6 +45,8 @@ def test_validate_pot_strings():
stderr=subprocess.STDOUT)
warnings = [l for l in out.decode("utf-8").splitlines()
if "warning:" in l]
warnings = [w for w in warnings
if "a fallback ITS rule file" not in w]
if warnings:
raise AssertionError("xgettext has warnings:\n\n%s" %
"\n".join(warnings))