From 74b3dc9a2de3bd49e2a00e7030368124bd54236b Mon Sep 17 00:00:00 2001 From: paul luse Date: Mon, 22 Jan 2018 14:37:25 -0700 Subject: [PATCH] test: minor updates to vm_setup script Added execute permissions and -p to a few mkdir locations to make re-running after an unrelated failure a little cleaner. Change-Id: I67592fc4dd91839979fdb8eeda38dcdbcd4b7700 Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/395865 Tested-by: SPDK Automated Test System Reviewed-by: Dariusz Stojaczyk Reviewed-by: Jim Harris Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- test/config/vm_setup.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 test/config/vm_setup.sh diff --git a/test/config/vm_setup.sh b/test/config/vm_setup.sh old mode 100644 new mode 100755 index 23d539077..c020eb421 --- a/test/config/vm_setup.sh +++ b/test/config/vm_setup.sh @@ -63,7 +63,7 @@ sudo dnf install -y libuuid-devel cd ~ -mkdir spdk_repo +mkdir -p spdk_repo # the configurations of username and email are needed later for applying patches to iscsiadm. git config --global user.name none @@ -82,7 +82,7 @@ sudo make install cd ~ cd spdk_repo -mkdir output +mkdir -p output git clone https://review.gerrithub.io/spdk/spdk cd spdk git submodule update --init --recursive @@ -94,11 +94,11 @@ cd ~ CURRENT_VERSION=$(iscsiadm --version) OPEN_ISCSI_VER='iscsiadm version 6.2.0.874' if [ "$CURRENT_VERSION" == "$OPEN_ISCSI_VER" ]; then - mkdir open-iscsi-install + mkdir -p open-iscsi-install cd open-iscsi-install sudo dnf download --source iscsi-initiator-utils rpm2cpio iscsi-initiator-utils-6.2.0.874-3.git86e8892.fc26.src.rpm | cpio -idmv - mkdir patches + mkdir -p patches mv 00* patches/ git clone https://github.com/open-iscsi/open-iscsi @@ -139,7 +139,7 @@ sudo mv FlameGraph /usr/local/FlameGraph # The SPDK branch of Qemu contains some extra functionality needed by SPDK. However, that branch is not currently # compatible with GCC 7. Some of the SPDK changes are currently out for review on Qemu's main branch. Until those # changes are merged, this specific review provides support for both spdk and GCC 7. -mkdir vhost +mkdir -p vhost cd vhost git clone https://review.gerrithub.io/spdk/qemu cd qemu