nixos/test-driver: add a test for #241938.
This commit is contained in:
parent
50c922e395
commit
c05483d274
|
@ -89,6 +89,7 @@ in {
|
||||||
extra-python-packages = handleTest ./nixos-test-driver/extra-python-packages.nix {};
|
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 {};
|
lib-extend = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./nixos-test-driver/lib-extend.nix {};
|
||||||
node-name = runTest ./nixos-test-driver/node-name.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
|
# NixOS vm tests and non-vm unit tests
|
||||||
|
|
16
nixos/tests/nixos-test-driver/busybox.nix
Normal file
16
nixos/tests/nixos-test-driver/busybox.nix
Normal 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")
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue