test: Ignore AppStream XML parser errors in TestSOS.testAppStream

If chromium is installed in the testbed (which is the case in gating
tests), this test fails on two unexpected messages:

    /usr/share/metainfo/chromium-browser.appdata.xml:   File "<string>", line None
    xml.etree.ElementTree.ParseError: XML or text declaration not at start of entity: line 2, column 0

Ignore all xml related messages in this test.
This commit is contained in:
Martin Pitt 2021-03-10 20:04:13 +01:00 committed by Martin Pitt
parent 7e6f84913b
commit daeeaf861a

View file

@ -119,6 +119,8 @@ only-plugins=release,date,host,cgroups,networking
m = self.machine
self.allow_journal_messages("invalid or unusable locale.*")
# chromium rpm has broken appstream data, which causes various parser errors
self.allow_journal_messages(".*xml.*")
self.login_and_go("/apps")
b.wait_not_present(".app-list-empty .spinner")