Use gate_hook but not pre_test_hook in Tricircle multiregion job

The multi-region job for Tricircle needs to update some
environment variables which will be used in the devstack based
test environment setup, it's impossible to set these variables
in pre_test_hook.sh without sourcing it, which leads to the job
failure. gate_hook is a better hook point to do this, many other
projects like Octvia, Magnum etc already used this hook point to
configure environment variables. It's better to use gate_hook
but not pre_test_hook in Tricircle multiregion job

Change-Id: I6763d7141895dfc3e94baed92b2c052a698049d1
Signed-off-by: joehuang <joehuang@huawei.com>
This commit is contained in:
joehuang 2017-03-08 01:17:29 -05:00
parent af41e9d7bd
commit b227680963

View File

@ -82,15 +82,13 @@
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function pre_test_hook {{
cd /opt/stack/new/tricircle/tricircle/tempestplugin/
./pre_test_hook.sh
function gate_hook {{
bash -xe $BASE/new/tricircle/tricircle/tempestplugin/gate_hook.sh
}}
export -f pre_test_hook
export -f gate_hook
function post_test_hook {{
cd /opt/stack/new/tricircle/tricircle/tempestplugin/
./post_test_hook.sh
bash -xe $BASE/new/tricircle/tricircle/tempestplugin/post_test_hook.sh
}}
export -f post_test_hook