tests(vagrant): support for integration test.

Do not share the  repository during  integration tests as the test are destructive.
This commit is contained in:
Alexandre Pujol 2023-09-01 19:17:29 +01:00
parent 2f33ff2602
commit 105b2aea8c
Failed to generate hash of commit

4
tests/Vagrantfile vendored
View file

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