diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-01-20 15:32:31 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-01-20 16:23:52 +0100 |
commit | 261c25601d9a4efd5245e3ef161fb52bf0543083 (patch) | |
tree | 96558cc1ad6efeb7c03255b46eb2768d30216359 /tests/nixos/containers | |
parent | 74026bb1014460d511534da8a955bee6948716ee (diff) |
Use the official, documented NixOS runTest interface
Diffstat (limited to 'tests/nixos/containers')
-rw-r--r-- | tests/nixos/containers/containers.nix | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/nixos/containers/containers.nix b/tests/nixos/containers/containers.nix index a4856b2df..c8ee78a4a 100644 --- a/tests/nixos/containers/containers.nix +++ b/tests/nixos/containers/containers.nix @@ -1,12 +1,7 @@ # Test whether we can run a NixOS container inside a Nix build using systemd-nspawn. -{ nixpkgs, system, overlay }: +{ lib, nixpkgs, ... }: -with import (nixpkgs + "/nixos/lib/testing-python.nix") { - inherit system; - extraConfigurations = [ { nixpkgs.overlays = [ overlay ]; } ]; -}; - -makeTest ({ +{ name = "containers"; nodes = @@ -65,4 +60,4 @@ makeTest ({ host.succeed("[[ $(cat ./result/msg) = 'Hello World' ]]") ''; -}) +} |