nixosTests.hibernate: Make sure machines are shut down when finished

Co-authored-by: Janne Heß <janne@hess.ooo>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2021-10-26 14:09:05 -07:00
parent c7c01d3c63
commit 97e39fcafa

View file

@ -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