diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-06-23 20:02:10 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-06-26 18:12:09 +0000 |
commit | 17b00794360dc3161f5e5a24d7d8f635fea774eb (patch) | |
tree | 394b1952daf5640c2119ca307315f3d2d710b2e3 /nixos/tests/virtualbox.nix | |
parent | ecaa6f5c60db3db0e0080df81663a8f2b1731a2a (diff) |
nixosTests.virtualbox: create shared dir before VM
Otherwise, since the update to Virtualbox 6.1.22, the test would fail due to the shared directory not existing. Fixes: ba0da8a076e ("virtualbox: 6.1.18 -> 6.1.22")
Diffstat (limited to 'nixos/tests/virtualbox.nix')
-rw-r--r-- | nixos/tests/virtualbox.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index e9b228f072770..95eff74d1e5b7 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -217,6 +217,7 @@ let def create_vm_${name}(): + cleanup_${name}() vbm("createvm --name ${name} ${createFlags}") vbm("modifyvm ${name} ${vmFlags}") vbm("setextradata ${name} VBoxInternal/PDM/HaltOnReset 1") @@ -224,7 +225,6 @@ let vbm("storageattach ${name} ${diskFlags}") vbm("sharedfolder add ${name} ${sharedFlags}") vbm("sharedfolder add ${name} ${nixstoreFlags}") - cleanup_${name}() ${mkLog "$HOME/VirtualBox VMs/${name}/Logs/VBox.log" "HOST-${name}"} |