Loading pkgs/by-name/ke/keepassxc/package.nix +31 −12 Original line number Diff line number Diff line Loading @@ -74,15 +74,34 @@ stdenv.mkDerivation (finalAttrs: { ]; doCheck = true; checkPhase = '' checkPhase = let disabledTests = lib.concatStringsSep "|" ( [ # flaky "testcli" "testgui" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # QWidget: Cannot create a QWidget without QApplication "testautotype" # FAIL! : TestDatabase::testExternallyModified() Compared values are not the same # Actual (((spyFileChanged.count()))): 0 # Expected (1) : 1 # Loc: [/tmp/nix-build-keepassxc-2.7.10.drv-2/source/tests/TestDatabase.cpp(288)] "testdatabase" ] ); in '' runHook preCheck export LC_ALL="en_US.UTF-8" export QT_QPA_PLATFORM=offscreen export QT_PLUGIN_PATH="${libsForQt5.qtbase.bin}/${libsForQt5.qtbase.qtPluginPrefix}" # testcli, testgui and testkdbx4 are flaky - skip them all # testautotype on darwin throws "QWidget: Cannot create a QWidget without QApplication" make test ARGS+="-E 'testcli|testgui${lib.optionalString stdenv.hostPlatform.isDarwin "|testautotype|testkdbx4"}' --output-on-failure" make test ARGS+="-E '${disabledTests}' --output-on-failure" runHook postCheck ''; Loading Loading
pkgs/by-name/ke/keepassxc/package.nix +31 −12 Original line number Diff line number Diff line Loading @@ -74,15 +74,34 @@ stdenv.mkDerivation (finalAttrs: { ]; doCheck = true; checkPhase = '' checkPhase = let disabledTests = lib.concatStringsSep "|" ( [ # flaky "testcli" "testgui" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # QWidget: Cannot create a QWidget without QApplication "testautotype" # FAIL! : TestDatabase::testExternallyModified() Compared values are not the same # Actual (((spyFileChanged.count()))): 0 # Expected (1) : 1 # Loc: [/tmp/nix-build-keepassxc-2.7.10.drv-2/source/tests/TestDatabase.cpp(288)] "testdatabase" ] ); in '' runHook preCheck export LC_ALL="en_US.UTF-8" export QT_QPA_PLATFORM=offscreen export QT_PLUGIN_PATH="${libsForQt5.qtbase.bin}/${libsForQt5.qtbase.qtPluginPrefix}" # testcli, testgui and testkdbx4 are flaky - skip them all # testautotype on darwin throws "QWidget: Cannot create a QWidget without QApplication" make test ARGS+="-E 'testcli|testgui${lib.optionalString stdenv.hostPlatform.isDarwin "|testautotype|testkdbx4"}' --output-on-failure" make test ARGS+="-E '${disabledTests}' --output-on-failure" runHook postCheck ''; Loading