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>
This commit is contained in:
aszlig 2015-09-24 09:13:15 +02:00
parent 3e6bb402b1
commit 764a767d5f
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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";
};