Vagrantfile: Use rsync to copy working directory to VM

Depending on the VM distro the working directory can either be rsync'd
to the VM or mounted. When the directory is mounted, various artifacts
are left behind from the test execution which is not desired especially
when the directory is shared between multiple VMs for parallel testing.
As such, it's best to simply copy the directory to the VM using 'rsync'
so each VM can get its own copy. This also restores the missing new line
at the end of the test-log-collect.sh script which got removed in
I4475e4dfe13acb4c88444f1f7aa88272bf87f6ee in order to make the linters
happy.

Change-Id: I1aab7d3f0d26f35dea84ae088fe78cfd2de79366
This commit is contained in:
Markos Chandras 2018-01-17 12:25:08 +00:00
parent 6c800b5170
commit fd9615fd55
2 changed files with 3 additions and 0 deletions

2
Vagrantfile vendored
View File

@ -20,6 +20,8 @@ Vagrant.configure(2) do |config|
v.cpus = 2 v.cpus = 2
end end
config.vm.synced_folder ".", "/vagrant", type: "rsync"
config.vm.provision "shell", config.vm.provision "shell",
privileged: false, privileged: false,
inline: <<-SHELL inline: <<-SHELL

View File

@ -208,3 +208,4 @@ done
command gzip --force --best --recursive "${WORKING_DIR}/logs/" || echo 'Note: gzip log files failed' command gzip --force --best --recursive "${WORKING_DIR}/logs/" || echo 'Note: gzip log files failed'
echo "#### END LOG COLLECTION ###" echo "#### END LOG COLLECTION ###"