Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Sep 17, 2024
1 parent 6ee947c commit 6fd40a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Build and test org.flatpak.Builder
run: |
git clone --depth=1 --branch master --recursive --single-branch https://github.com/flathub/org.flatpak.Builder.git build/org.flatpak.Builder
git clone --depth=1 --branch bbhtt/fdo-2408 --recursive --single-branch https://github.com/flathub/org.flatpak.Builder.git build/org.flatpak.Builder
cd build && python3 ../docker/rewrite-manifest.py && cd org.flatpak.Builder
rm -v flatpak-builder-lint-deps.json && cp -v ../../docker/flatpak-builder-lint-deps.json .
flatpak-builder --verbose --user --force-clean --repo=repo \
Expand All @@ -88,4 +88,7 @@ jobs:
appstreamcli --version
- name: Run test suite
run: poetry run pytest -v tests
run:|
echo $PATH
which appstreamcli
poetry run pytest -vvv tests
2 changes: 2 additions & 0 deletions flatpak_builder_lint/checks/metainfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def _validate(self, path: str, appid: str) -> None:

metainfo_validation = appstream.validate(metainfo_path, "--no-net")
if metainfo_validation["returncode"] != 0:
print(metainfo_validation["stderr"])
self.errors.add(f"{metainfo_validation['stderr']}")
self.errors.add("appstream-failed-validation")
self.info.add(
f"appstream-failed-validation: Metainfo file {metainfo_path} has failed validation."
Expand Down

0 comments on commit 6fd40a1

Please sign in to comment.