nixos/test-driver: add a test for #241938.

This commit is contained in:
r-vdp 2023-07-07 10:58:13 +02:00
parent 50c922e395
commit c05483d274
No known key found for this signature in database
2 changed files with 17 additions and 0 deletions

View File

@ -89,6 +89,7 @@ in {
extra-python-packages = handleTest ./nixos-test-driver/extra-python-packages.nix {};
lib-extend = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./nixos-test-driver/lib-extend.nix {};
node-name = runTest ./nixos-test-driver/node-name.nix;
busybox = runTest ./nixos-test-driver/busybox.nix;
};
# NixOS vm tests and non-vm unit tests

View File

@ -0,0 +1,16 @@
{
name = "Test for NixOS/nixpkgs#241938";
nodes = {
machine = ({ pkgs, ... }: {
environment.systemPackages = [
pkgs.busybox
];
});
};
testScript = ''
start_all()
machine.wait_for_unit("multi-user.target")
'';
}