From 07f21403000ac7b7b7cf91950a521cccf5765bc5 Mon Sep 17 00:00:00 2001 From: Mark Vanderwiel Date: Tue, 8 Mar 2016 11:39:51 -0600 Subject: [PATCH] Fix gate hook scripts to use script dir to source commons Change-Id: I383d3e87babf8035ae5f0e2bff3395a661327bb9 --- tools/gate/integration/post_test_hook.sh | 4 +++- tools/gate/integration/pre_test_hook.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/gate/integration/post_test_hook.sh b/tools/gate/integration/post_test_hook.sh index 8a4cdef..cbdf6f4 100755 --- a/tools/gate/integration/post_test_hook.sh +++ b/tools/gate/integration/post_test_hook.sh @@ -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 diff --git a/tools/gate/integration/pre_test_hook.sh b/tools/gate/integration/pre_test_hook.sh index a6ec06d..acf623c 100755 --- a/tools/gate/integration/pre_test_hook.sh +++ b/tools/gate/integration/pre_test_hook.sh @@ -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 $@ \ No newline at end of file