nixos/tests/nixos-test-driver: test timeout failures

We test that the test framework timeouts are working as expected.
This commit is contained in:
Raito Bezarius
2023-10-27 13:32:04 +02:00
parent a0dc17bd57
commit c90219633c
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{
name = "Test that sleep of 6 seconds fails a timeout of 5 seconds";
globalTimeout = 5;
nodes = {
machine = ({ pkgs, ... }: {
});
};
testScript = ''
start_all()
machine.wait_for_unit("multi-user.target")
machine.succeed("sleep 6")
'';
}