From 39644db177a64047397caf524a35032db3f2687e Mon Sep 17 00:00:00 2001 From: Vasyl Saienko Date: Thu, 7 Jul 2016 10:09:05 +0300 Subject: [PATCH] Make Ironic variables visible inside exercise.sh This patch make Ironic environment variables like PRIVATE_NETWORK_NAME visible during launching tests. Change-Id: If936efe079fd3b88eaa56bc0d96b7ef6854d3e48 --- devstack/exercise.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devstack/exercise.sh b/devstack/exercise.sh index f11fa83cc..893aaacad 100755 --- a/devstack/exercise.sh +++ b/devstack/exercise.sh @@ -1,6 +1,15 @@ #!/bin/bash -set -eux +set -ex + +# NOTE(vsaienko) this script is launched with sudo. +# Only exported variables are passed here. +# Source to make sure all vars are available. +STACK_ROOT="$(dirname "$0")/../../" +source "$STACK_ROOT/devstack/stackrc" +source "$STACK_ROOT/ironic/devstack/lib/ironic" + +set -u INTROSPECTION_SLEEP=${INTROSPECTION_SLEEP:-30} export IRONIC_API_VERSION=${IRONIC_API_VERSION:-latest}