diff --git a/nixos/tests/hibernate.nix b/nixos/tests/hibernate.nix index ae506c8542fe..f0d5da4a95ed 100644 --- a/nixos/tests/hibernate.nix +++ b/nixos/tests/hibernate.nix @@ -68,7 +68,7 @@ in makeTest { testScript = '' def create_named_machine(name): - return create_machine( + machine = create_machine( { "qemuFlags": "-cpu max ${ if system == "x86_64-linux" then "-m 1024" @@ -78,6 +78,8 @@ in makeTest { "name": name, } ) + driver.machines.append(machine) + return machine # Install NixOS