Add pre_test_hook

The pre_test_hook.sh script runs in the gate to set up for functional tests.

Change-Id: I9b1b412d59bd99c551af6b4d10d2e47c6eebda76
This commit is contained in:
Kaitlin Farr 2017-02-15 16:01:47 -05:00
parent 2adeed60e5
commit 275af40c14
1 changed files with 17 additions and 0 deletions

17
tools/pre_test_hook.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#
# This script is executed inside pre_test_hook function in devstack gate.
set -ex
export DEST=${DEST:-$BASE/new}
export DEVSTACK_DIR=${DEVSTACK_DIRE:-$DEST/devstack}
export LOCALCONF_PATH=$DEVSTACK_DIR/local.conf
# Here we can set some configurations for local.conf
# for example, to pass some config options directly to .conf files
echo -e '[[post-config|$NOVA_CONF]]' >> $LOCALCONF_PATH
echo -e '[glance]' >> $LOCALCONF_PATH
echo -e 'verify_glance_signatures = True' >> $LOCALCONF_PATH