tests: test_dist: Add 'appstream-util validate' check

And fix some issues it reports

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-09-13 19:33:01 -04:00
parent 2197752739
commit d2b5ce53a3
2 changed files with 10 additions and 0 deletions

View File

@ -39,4 +39,9 @@
<keyword>qemu</keyword> <keyword>qemu</keyword>
<keyword>kvm</keyword> <keyword>kvm</keyword>
</keywords> </keywords>
<content_rating type="oars-1.1"/>
<releases>
<release version="2.2.1" date="2019-07-03"/>
<release version="2.2.0" date="2019-06-17"/>
</releases>
</component> </component>

View File

@ -119,3 +119,8 @@ def test_ui_translatable_atknames():
(atkstr, atkstr)) (atkstr, atkstr))
err += " ".join(failures) err += " ".join(failures)
raise AssertionError(err) raise AssertionError(err)
def test_appstream_validate():
subprocess.check_call(["appstream-util", "validate",
"data/virt-manager.appdata.xml.in"])