From 6fd40a1f7f18637a3f22ed5e98e880c842b4b2db Mon Sep 17 00:00:00 2001 From: bbhtt Date: Tue, 17 Sep 2024 21:31:33 +0530 Subject: [PATCH] test --- .github/workflows/ci.yml | 7 +++++-- flatpak_builder_lint/checks/metainfo.py | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86368fe0..0f720bdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ @@ -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 diff --git a/flatpak_builder_lint/checks/metainfo.py b/flatpak_builder_lint/checks/metainfo.py index f2f5a56a..9ca38f4b 100644 --- a/flatpak_builder_lint/checks/metainfo.py +++ b/flatpak_builder_lint/checks/metainfo.py @@ -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."