From 275af40c14bbf0b00a1c27a2717950a765630cf5 Mon Sep 17 00:00:00 2001 From: Kaitlin Farr Date: Wed, 15 Feb 2017 16:01:47 -0500 Subject: [PATCH] Add pre_test_hook The pre_test_hook.sh script runs in the gate to set up for functional tests. Change-Id: I9b1b412d59bd99c551af6b4d10d2e47c6eebda76 --- tools/pre_test_hook.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tools/pre_test_hook.sh diff --git a/tools/pre_test_hook.sh b/tools/pre_test_hook.sh new file mode 100755 index 0000000..806ca40 --- /dev/null +++ b/tools/pre_test_hook.sh @@ -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 +