linux: change tests to attrset

This commit is contained in:
jopejoe1 2024-10-20 12:42:34 +02:00
parent 49f6d16849
commit 6034f6087e

View File

@ -71,7 +71,7 @@ lib.makeOverridable ({ # The kernel source tarball.
, autoModules ? stdenv.hostPlatform.linux-kernel.autoModules
, preferBuiltin ? stdenv.hostPlatform.linux-kernel.preferBuiltin or false
, kernelArch ? stdenv.hostPlatform.linuxArch
, kernelTests ? []
, kernelTests ? {}
, stdenv ? args'.stdenv
, buildPackages ? args'.buildPackages
@ -281,12 +281,12 @@ kernel.overrideAttrs (finalAttrs: previousAttrs: {
modDirVersion = throw (explain "modDirVersion");
}))).version
emptyFile;
in [
(nixosTests.kernel-generic.passthru.testsForKernel overridableKernel)
versionDoesNotDependOnPatchesEtc
in {
inherit versionDoesNotDependOnPatchesEtc;
testsForKernel = nixosTests.kernel-generic.passthru.testsForKernel overridableKernel;
# Disabled by default, because the infinite recursion is hard to understand. The other test's error is better and produces a shorter trace.
# versionDoesNotDependOnPatchesEtcNixOS
] ++ kernelTests;
# inherit versionDoesNotDependOnPatchesEtcNixOS;
} // kernelTests;
};
}));