about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-09-24 09:13:15 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-09-24 09:16:21 +0200
commit764a767d5f263e97406c07e6341b387643e1c7ac (patch)
treee4ba6acd7ed1949abff3b57c5cc84238a27afbfc /nixos/tests
parent3e6bb402b18c7b08e85a0468b442c40e4983ab58 (diff)
downloadnixlib-764a767d5f263e97406c07e6341b387643e1c7ac.tar
nixlib-764a767d5f263e97406c07e6341b387643e1c7ac.tar.gz
nixlib-764a767d5f263e97406c07e6341b387643e1c7ac.tar.bz2
nixlib-764a767d5f263e97406c07e6341b387643e1c7ac.tar.lz
nixlib-764a767d5f263e97406c07e6341b387643e1c7ac.tar.xz
nixlib-764a767d5f263e97406c07e6341b387643e1c7ac.tar.zst
nixlib-764a767d5f263e97406c07e6341b387643e1c7ac.zip
nixos/tests/virtualbox: Destroy detectvirt VM.
I forgot to do this in da0e642. It shouldn't be a big problem but it's
more clean to destroy the VM once we're done testing.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/virtualbox.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix
index a2d33fa328b0..2b5b5a180fca 100644
--- a/nixos/tests/virtualbox.nix
+++ b/nixos/tests/virtualbox.nix
@@ -413,6 +413,7 @@ in {
       shutdownVM_detectvirt;
       my $result = $machine->succeed("cat '$detectvirt_sharepath/result'");
       chomp $result;
+      destroyVM_detectvirt;
       die "systemd-detect-virt returned \"$result\" instead of \"oracle\""
         if $result ne "oracle";
     };