nixos/tests/wireguard: tie kernel version to test to default

When wireguard began being tested on multiple kernel versions, the
current default version at the time was hard coded:
41bd6d2614.

We should update this and prevent it from becoming stale ever again by
computing the default value.
This commit is contained in:
sternenseemann 2024-08-31 16:07:02 +02:00
parent b5f465a02f
commit 891a1f78e8

View File

@ -1,7 +1,8 @@
{ system ? builtins.currentSystem
, config ? { }
, pkgs ? import ../../.. { inherit system config; }
, kernelVersionsToTest ? [ "5.4" "latest" ]
# Test current default (LTS) and latest kernel
, kernelVersionsToTest ? [ (pkgs.lib.versions.majorMinor pkgs.linuxPackages.kernel.version) "latest" ]
}:
with pkgs.lib;