nixosTests.earlyoom: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 21:21:10 +08:00
parent a72c8b8f69
commit 7ea4b7c71a
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
2 changed files with 34 additions and 38 deletions

View File

@ -434,7 +434,7 @@ in
drbd-driver = runTest ./drbd-driver.nix;
dublin-traceroute = runTest ./dublin-traceroute.nix;
dwl = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./dwl.nix;
earlyoom = handleTestOn [ "x86_64-linux" ] ./earlyoom.nix { };
earlyoom = runTestOn [ "x86_64-linux" ] ./earlyoom.nix;
early-mount-options = handleTest ./early-mount-options.nix { };
ec2-config = (handleTestOn [ "x86_64-linux" ] ./ec2.nix { }).boot-ec2-config or { };
ec2-nixops = (handleTestOn [ "x86_64-linux" ] ./ec2.nix { }).boot-ec2-nixops or { };

View File

@ -1,13 +1,10 @@
import ./make-test-python.nix (
{ lib, ... }:
{
{ lib, ... }:
{
name = "earlyoom";
meta = {
maintainers = with lib.maintainers; [
meta.maintainers = with lib.maintainers; [
ncfavier
oxalica
];
};
nodes.machine =
{ pkgs, ... }:
@ -38,5 +35,4 @@ import ./make-test-python.nix (
output = machine.succeed('journalctl -u earlyoom.service -b0')
assert 'low memory! at or below SIGKILL limits' in output
'';
}
)
}