From 97e39fcafa593264f4aba8338b69a9293f772e15 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 26 Oct 2021 14:09:05 -0700 Subject: nixosTests.hibernate: Make sure machines are shut down when finished MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Janne Heß Signed-off-by: Anders Kaseorg --- nixos/tests/hibernate.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/hibernate.nix b/nixos/tests/hibernate.nix index ae506c8542f..f0d5da4a95e 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 -- cgit 1.4.1