Skip to content

Commit

Permalink
Merge: linux: change tests to attrset (NixOS#350008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 authored Oct 31, 2024
2 parents e01ec8d + 6034f60 commit de19a7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkgs/os-specific/linux/kernel/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
};

}));
Expand Down

0 comments on commit de19a7d

Please sign in to comment.