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:
parent
c7c01d3c63
commit
97e39fcafa
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue