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:
parent
9265a613c2
commit
39644db177
@ -1,6 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/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}
|
INTROSPECTION_SLEEP=${INTROSPECTION_SLEEP:-30}
|
||||||
export IRONIC_API_VERSION=${IRONIC_API_VERSION:-latest}
|
export IRONIC_API_VERSION=${IRONIC_API_VERSION:-latest}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user