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:
@@ -68,7 +68,7 @@ in makeTest {
|
|||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
def create_named_machine(name):
|
def create_named_machine(name):
|
||||||
return create_machine(
|
machine = create_machine(
|
||||||
{
|
{
|
||||||
"qemuFlags": "-cpu max ${
|
"qemuFlags": "-cpu max ${
|
||||||
if system == "x86_64-linux" then "-m 1024"
|
if system == "x86_64-linux" then "-m 1024"
|
||||||
@@ -78,6 +78,8 @@ in makeTest {
|
|||||||
"name": name,
|
"name": name,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
driver.machines.append(machine)
|
||||||
|
return machine
|
||||||
|
|
||||||
|
|
||||||
# Install NixOS
|
# Install NixOS
|
||||||
|
|||||||
Reference in New Issue
Block a user