Fix gate hook scripts to use script dir to source commons

Change-Id: I383d3e87babf8035ae5f0e2bff3395a661327bb9
This commit is contained in:
Mark Vanderwiel 2016-03-08 11:39:51 -06:00
parent 16370f1a13
commit 07f2140300
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,9 @@
# This script will be executed inside post_test_hook function in devstack gate
set -x
source commons $@
DIR=${BASH_SOURCE%/*}
source $DIR/commons $@
set +e
cd /opt/stack/new/app-catalog-ui

View File

@ -3,4 +3,6 @@
# This script will be executed inside pre_test_hook function in devstack gate
set -ex
source commons $@
DIR=${BASH_SOURCE%/*}
source $DIR/commons $@