nixos/all-tests: Enable readOnlyPkgs by default for runTest

Most tests are not affected by this because they use the `handleTest`
function instead.
This commit is contained in:
Robert Hensing 2023-05-07 19:25:33 +02:00
parent b0e17891f2
commit 16e3647337

View file

@ -46,7 +46,7 @@ let
inherit inherit
(rec { (rec {
doRunTest = arg: ((import ../lib/testing-python.nix { inherit system pkgs; }).evalTest { doRunTest = arg: ((import ../lib/testing-python.nix { inherit system pkgs; }).evalTest {
imports = [ arg ]; imports = [ arg readOnlyPkgs ];
}).config.result; }).config.result;
findTests = tree: findTests = tree:
if tree?recurseForDerivations && tree.recurseForDerivations if tree?recurseForDerivations && tree.recurseForDerivations
@ -94,7 +94,7 @@ in {
_3proxy = runTest ./3proxy.nix; _3proxy = runTest ./3proxy.nix;
aaaaxy = runTest ./aaaaxy.nix; aaaaxy = runTest ./aaaaxy.nix;
acme = runTest { imports = [ ./acme.nix readOnlyPkgs ]; }; acme = runTest ./acme.nix;
adguardhome = runTest ./adguardhome.nix; adguardhome = runTest ./adguardhome.nix;
aesmd = runTestOn ["x86_64-linux"] ./aesmd.nix; aesmd = runTestOn ["x86_64-linux"] ./aesmd.nix;
agate = runTest ./web-servers/agate.nix; agate = runTest ./web-servers/agate.nix;