From 9116e87e69066a3cef0a0bb5ac975e9c4006b526 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 7 Dec 2023 13:27:26 +0000 Subject: [PATCH] xdg-desktop-portal: disable known flaky tests (set `TEST_IN_CI`) There are a few tests that are fkay in hydra. Most fauly one seems to be `monitor` test from `test-portals-inhibit` suite. Upstream already skips it for `TEST_IN_CI` case. Let's set the variable as well to skip these tests. --- pkgs/development/libraries/xdg-desktop-portal/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/xdg-desktop-portal/default.nix b/pkgs/development/libraries/xdg-desktop-portal/default.nix index e760151f216a..905675c40659 100644 --- a/pkgs/development/libraries/xdg-desktop-portal/default.nix +++ b/pkgs/development/libraries/xdg-desktop-portal/default.nix @@ -117,6 +117,12 @@ stdenv.mkDerivation (finalAttrs: { preCheck = '' # For test_trash_file export HOME=$(mktemp -d) + + # Upstream disables a few tests in CI upstream as they are known to + # be flaky. Let's disable those downstream as hydra exhibits similar + # flakes: + # https://github.com/NixOS/nixpkgs/pull/270085#issuecomment-1840053951 + export TEST_IN_CI=1 ''; passthru = {