From 6301d0051989f85d2645da10029ce5fe30e81dc0 Mon Sep 17 00:00:00 2001 From: Vladimir Kozhukalov Date: Wed, 15 Jan 2014 16:45:30 +0400 Subject: [PATCH] Tiny improvement in paths This patch allows to run devstack-vm-gate-wrap.sh outside $WORKSPACE directory. Without this patch script fails with error that logs/* paths are not found. Change-Id: Ia6d0723fd8dc5dde60fba76783678053069a0a86 --- devstack-vm-gate-wrap.sh | 4 ++-- functions.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index 85bc7c6d..89d9b69a 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -87,8 +87,8 @@ if [ -z "$SKIP_DEVSTACK_GATE_PROJECT" ]; then fi # Make a directory to store logs -rm -rf logs -mkdir -p logs +rm -rf $WORKSPACE/logs +mkdir -p $WORKSPACE/logs # Set to 1 to run the Tempest test suite export DEVSTACK_GATE_TEMPEST=${DEVSTACK_GATE_TEMPEST:-0} diff --git a/functions.sh b/functions.sh index 2dea8a3b..f3578c52 100644 --- a/functions.sh +++ b/functions.sh @@ -293,7 +293,7 @@ function setup_host { sudo start rsyslog # We set some home directories under $BASE, make sure it exists. - sudo mkdir $BASE + sudo mkdir -p $BASE # Create a stack user for devstack to run as, so that we can # revoke sudo permissions from that user when appropriate. sudo useradd -U -s /bin/bash -d $BASE/new -m stack