Make Ironic variables visible inside exercise.sh

This patch make Ironic environment variables like PRIVATE_NETWORK_NAME
visible during launching tests.

Change-Id: If936efe079fd3b88eaa56bc0d96b7ef6854d3e48
This commit is contained in:
Vasyl Saienko 2016-07-07 10:09:05 +03:00
parent 9265a613c2
commit 39644db177

View File

@ -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}