diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c05e30b46..78bdb0432 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -57,7 +57,7 @@ jobs: meson compile -C _build - name: Run xdg-desktop-portal tests - run: timeout --signal=KILL -v ${TESTS_TIMEOUT}m meson test -C _build + run: XDP_TEST_RUN_LONG=1 timeout --signal=KILL -v ${TESTS_TIMEOUT}m meson test -C _build - name: Install xdg-desktop-portal run: meson install -C _build diff --git a/tests/conftest.py b/tests/conftest.py index acc7b560a..bef692a90 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -399,9 +399,15 @@ def xdp_overwrite_env() -> dict[str, str]: params=[ xdp.AppInfoKind.HOST, xdp.AppInfoKind.FLATPAK, - xdp.AppInfoKind.SNAP, - xdp.AppInfoKind.LINYAPS, ] + + ( + [ + xdp.AppInfoKind.SNAP, + xdp.AppInfoKind.LINYAPS, + ] + if xdp.run_long_tests() + else [] + ) ) def xdp_app_info(request) -> xdp.AppInfo: """