diff options
| author | Nick Cao <nickcao@nichi.co> | 2023-02-10 19:17:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-10 19:17:14 +0800 |
| commit | dbe7211a802a8798420c753ce181578653d31be7 (patch) | |
| tree | f3c67c26805cea12f66262012c5382bb62b2ca69 | |
| parent | Merge pull request #215657 from NixOS/backport-215650-to-release-22.11 (diff) | |
| parent | phpExtensions.opcache: remove flaky tests on darwin (diff) | |
| download | nixpkgs-dbe7211a802a8798420c753ce181578653d31be7.tar.gz | |
Merge pull request #215669 from NixOS/backport-215539-to-release-22.11
[Backport release-22.11] phpExtensions.opcache: remove flaky test on darwin
| -rw-r--r-- | pkgs/top-level/php-packages.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index cb8637df2a63..6c27059ae528 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -80,7 +80,6 @@ lib.makeScope pkgs.newScope (self: with self; { , zendExtension ? false , doCheck ? true , extName ? name - , allowLocalNetworking ? false , ... }@args: stdenv.mkDerivation ((builtins.removeAttrs args [ "name" ]) // { pname = "php-${name}"; @@ -100,7 +99,6 @@ lib.makeScope pkgs.newScope (self: with self; { ]; inherit configureFlags internalDeps buildInputs zendExtension doCheck; - __darwinAllowLocalNetworking = allowLocalNetworking; preConfigurePhases = [ "cdToExtensionRootPhase" @@ -409,8 +407,17 @@ lib.makeScope pkgs.newScope (self: with self; { valgrind.dev ]; zendExtension = true; + postPatch = lib.optionalString stdenv.isDarwin '' + # Tests are flaky on darwin + rm ext/opcache/tests/blacklist.phpt + rm ext/opcache/tests/bug66338.phpt + rm ext/opcache/tests/bug78106.phpt + rm ext/opcache/tests/issue0115.phpt + rm ext/opcache/tests/issue0149.phpt + rm ext/opcache/tests/revalidate_path_01.phpt + ''; # Tests launch the builtin webserver. - allowLocalNetworking = true; + __darwinAllowLocalNetworking = true; } { name = "openssl"; |
