diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 0d933ca6e4f1..8612b97d66ff 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -185,7 +185,7 @@ in { audiobookshelf = runTest ./audiobookshelf.nix; auth-mysql = runTest ./auth-mysql.nix; authelia = runTest ./authelia.nix; - auto-cpufreq = handleTest ./auto-cpufreq.nix {}; + auto-cpufreq = runTest ./auto-cpufreq.nix; autobrr = handleTest ./autobrr.nix {}; avahi = handleTest ./avahi.nix {}; avahi-with-resolved = handleTest ./avahi.nix { networkd = true; }; diff --git a/nixos/tests/auto-cpufreq.nix b/nixos/tests/auto-cpufreq.nix index 79129cf1ffaf..a86fe02bf098 100644 --- a/nixos/tests/auto-cpufreq.nix +++ b/nixos/tests/auto-cpufreq.nix @@ -1,33 +1,27 @@ -import ./make-test-python.nix ( - { pkgs, ... }: +{ + name = "auto-cpufreq-server"; - { - name = "auto-cpufreq-server"; - - nodes = { - machine = - { pkgs, ... }: - { - # service will still start but since vm inside qemu cpufreq adjustments - # cannot be made. This will resource in the following error but the service - # remains up: - # ERROR: - # Couldn't find any of the necessary scaling governors. - services.auto-cpufreq = { - enable = true; - settings = { - charger = { - turbo = "auto"; - }; - }; + nodes = { + machine = { + # service will still start but since vm inside qemu cpufreq adjustments + # cannot be made. This will resource in the following error but the service + # remains up: + # ERROR: + # Couldn't find any of the necessary scaling governors. + services.auto-cpufreq = { + enable = true; + settings = { + charger = { + turbo = "auto"; }; }; + }; }; + }; - testScript = '' - machine.start() - machine.wait_for_unit("auto-cpufreq.service") - machine.succeed("auto-cpufreq --force reset") - ''; - } -) + testScript = '' + machine.start() + machine.wait_for_unit("auto-cpufreq.service") + machine.succeed("auto-cpufreq --force reset") + ''; +}