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:
parent
6c800b5170
commit
fd9615fd55
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -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
|
||||||
|
@ -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 ###"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user