scripts/vagrant: Run vm_setup.sh directly from the synced repo

vagrant's shell provisioner uploads files to /tmp, however,
vm_setup.sh must be run from the repo to find all the source
files. This requires the repo by synced over to the VM as well.

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: Iaf16f066af10739589aa584f57c2b89f5c5202e7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6734
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
This commit is contained in:
Michal Berger 2021-03-05 11:02:23 +01:00 committed by Tomasz Zawadzki
parent 07596cf183
commit ca31f3c512

View File

@ -173,10 +173,11 @@ end
def deploy_test_vm(config)
return unless ENV['DEPLOY_TEST_VM'] == "1"
return unless ENV['COPY_SPDK_DIR'] == "1"
return unless ENV['SPDK_DIR']
config.vm.provision "shell" do |setup|
setup.path = ENV['SPDK_DIR'] + '/test/common/config/vm_setup.sh'
setup.inline = "/home/vagrant/spdk_repo/spdk/test/common/config/vm_setup.sh"
setup.privileged = false
setup.args = ["-u", "-i"]
end