From 4f57c255accbc637770323f592f137252b3c53fb Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 17:29:12 +0100 Subject: [PATCH] nixosTests.unit-php: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/web-servers/unit-php.nix | 102 +++++++++++++-------------- 2 files changed, 51 insertions(+), 53 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index ede3e3fc3a0e..473cfb4c3062 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -1257,7 +1257,7 @@ in { umurmur = handleTest ./umurmur.nix {}; unbound = handleTest ./unbound.nix {}; unifi = handleTest ./unifi.nix {}; - unit-php = handleTest ./web-servers/unit-php.nix {}; + unit-php = runTest ./web-servers/unit-php.nix; unit-perl = handleTest ./web-servers/unit-perl.nix {}; upnp.iptables = handleTest ./upnp.nix { useNftables = false; }; upnp.nftables = handleTest ./upnp.nix { useNftables = true; }; diff --git a/nixos/tests/web-servers/unit-php.nix b/nixos/tests/web-servers/unit-php.nix index fcf0224639da..ae7503ad0ffa 100644 --- a/nixos/tests/web-servers/unit-php.nix +++ b/nixos/tests/web-servers/unit-php.nix @@ -1,62 +1,60 @@ -import ../make-test-python.nix ( - { pkgs, ... }: - let - testdir = pkgs.writeTextDir "www/info.php" "