test(packer): configure shared directory directly in the image.

This way, we do not always need to use vagrant to start a vm.
This commit is contained in:
Alexandre Pujol 2024-03-08 13:13:00 +00:00
parent c707b730ef
commit bac9658293
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
10 changed files with 53 additions and 16 deletions

2
tests/Vagrantfile vendored
View file

@ -26,7 +26,7 @@ Vagrant.configure("2") do |config|
srv.vm.post_up_message = instance.to_yaml
srv.vm.synced_folder '.', '/vagrant', disabled: true
if !ENV['AA_INTEGRATION']
srv.vm.synced_folder '../', '/home/user/Projects/apparmor.d', type: 'virtiofs'
srv.vm.synced_folder '../', '/home/user/Projects/apparmor.d', type: 'virtiofs', mount: false
end
# Configure Libvirt provider