diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-09-14 02:12:16 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-09-14 02:12:16 +0200 |
commit | f7563efa6e01c3dbc883a1c0047d4beeddc4fc86 (patch) | |
tree | 246346efccc8c49f521f8031b5bbedb83d479f12 /nixos/tests/virtualbox.nix | |
parent | 80c2cc350cd51fbfa9ccd49aeff08a78ab38fbd0 (diff) |
nixos/tests/vbox: Add destroyVM for all subtests
One reason why it took me so long for debugging the test failure with systemd-detect-virt was that simple-cli has succeeded while the former has not. This now makes sure we have consistency accross all the subtests and if problems like the one in the previos commit ever show up again, we will have just the headless test succeeding and it's more obvious where the actual problem resides. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/tests/virtualbox.nix')
-rw-r--r-- | nixos/tests/virtualbox.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index cafdf10ef513d..66f16ed8bcc5c 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -390,6 +390,7 @@ in mapAttrs mkVBoxTest { $machine->sendKeys("ctrl-q"); $machine->sleep(5); $machine->screenshot("gui_manager_stopped"); + destroyVM_simple; ''; simple-cli = '' @@ -407,6 +408,7 @@ in mapAttrs mkVBoxTest { }); shutdownVM_simple; + destroyVM_simple; ''; headless = '' @@ -415,6 +417,7 @@ in mapAttrs mkVBoxTest { waitForStartup_headless; waitForVMBoot_headless; shutdownVM_headless; + destroyVM_headless; ''; host-usb-permissions = '' |