nixosTests.nomad: Use runTest

About 30% quicker to eval
Runs on macOS as a VM host
This commit is contained in:
Robert Hensing 2025-03-04 00:19:06 +01:00
parent 082193eab1
commit 49aef13286
2 changed files with 92 additions and 94 deletions

View file

@ -798,7 +798,7 @@ in {
nixpkgs = pkgs.callPackage ../modules/misc/nixpkgs/test.nix { inherit evalMinimalConfig; }; nixpkgs = pkgs.callPackage ../modules/misc/nixpkgs/test.nix { inherit evalMinimalConfig; };
nixseparatedebuginfod = handleTest ./nixseparatedebuginfod.nix {}; nixseparatedebuginfod = handleTest ./nixseparatedebuginfod.nix {};
node-red = handleTest ./node-red.nix {}; node-red = handleTest ./node-red.nix {};
nomad = handleTest ./nomad.nix {}; nomad = runTest ./nomad.nix;
non-default-filesystems = handleTest ./non-default-filesystems.nix {}; non-default-filesystems = handleTest ./non-default-filesystems.nix {};
non-switchable-system = runTest ./non-switchable-system.nix; non-switchable-system = runTest ./non-switchable-system.nix;
noto-fonts = handleTest ./noto-fonts.nix {}; noto-fonts = handleTest ./noto-fonts.nix {};

View file

@ -1,4 +1,3 @@
import ./make-test-python.nix (
{ lib, ... }: { lib, ... }:
{ {
name = "nomad"; name = "nomad";
@ -101,4 +100,3 @@ import ./make-test-python.nix (
test_nomad_server(server) test_nomad_server(server)
''; '';
} }
)