git.iko.soy/typeable/nixpkgs
on master help sign in
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>

commitf7563efa6e01c3dbc883a1c0047d4beeddc4fc86 authoraszlig <aszlig@redmoonstudios.org> dateWed 14 Sep 2016, 02:12 (10 years ago) parent80c2cc3
1 file changed+3
nixos/tests/virtualbox.nix+3
nixos/tests/virtualbox.nix+3
@@ -390,6 +390,7 @@ in mapAttrs mkVBoxTest {
390390 $machine->sendKeys("ctrl-q");
391391 $machine->sleep(5);
392392 $machine->screenshot("gui_manager_stopped");
393+ destroyVM_simple;
393394 '';
394395
395396 simple-cli = ''
@@ -407,6 +408,7 @@ in mapAttrs mkVBoxTest {
407408 });
408409
409410 shutdownVM_simple;
411+ destroyVM_simple;
410412 '';
411413
412414 headless = ''
@@ -415,6 +417,7 @@ in mapAttrs mkVBoxTest {
415417 waitForStartup_headless;
416418 waitForVMBoot_headless;
417419 shutdownVM_headless;
420+ destroyVM_headless;
418421 '';
419422
420423 host-usb-permissions = ''