From 051d3fe016b7816d6292c180c01fe43f90a7158f Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Mon, 23 Mar 2020 14:23:22 +0100 Subject: [PATCH] test/vm_setup: Fix permision error in Centos7 Signed-off-by: Maciej Wawryk Change-Id: Ic704e9ae97bb68d96401818fb52940e86eaa36a3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1409 Tested-by: SPDK CI Jenkins Reviewed-by: Karol Latecki Reviewed-by: Darek Stojaczyk Reviewed-by: Ben Walker --- scripts/vagrant/Vagrantfile | 2 +- test/common/config/vm_setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vagrant/Vagrantfile b/scripts/vagrant/Vagrantfile index 8952b667d..45b7667ff 100644 --- a/scripts/vagrant/Vagrantfile +++ b/scripts/vagrant/Vagrantfile @@ -179,7 +179,7 @@ Vagrant.configure(2) do |config| # rsync the spdk directory if provision hasn't happened yet # Warning: rsync does not work with freebsd boxes, so this step is disabled if ENV['COPY_SPDK_DIR'] == "1" && spdk_dir != "none" && !distro.include?("freebsd") - config.vm.synced_folder "#{spdk_dir}", "/home/vagrant/spdk_repo/spdk", type: "rsync", rsync__auto: false + config.vm.synced_folder "#{spdk_dir}", "/home/vagrant/spdk_repo/spdk", owner: "vagrant", group: "vagrant", type: "rsync", rsync__auto: false end # provision the vm with all of the necessary spdk dependencies for running the autorun.sh tests diff --git a/test/common/config/vm_setup.sh b/test/common/config/vm_setup.sh index 6c4e5ab6a..9b49ffc13 100755 --- a/test/common/config/vm_setup.sh +++ b/test/common/config/vm_setup.sh @@ -442,7 +442,7 @@ if $INSTALL; then fi fi -mkdir -p spdk_repo/output +mkdir -p spdk_repo/output || echo "Can not create spdk_repo/output directory." if [ -d spdk_repo/spdk ]; then echo "spdk source already present, not cloning"