Do not 'cd' from current workspace dir in horizon test hooks

So we can copy test artifacts to the current workspace dir, which name
otherwise needs to be passed into test hook. This is needed because
the job name (and consequently the workspace name) can change
independently from test hooks defined in horizon, and thus cannot be
hardcoded.

Needed-By: I63e45ee89711b429d0d878303aefeec4b159125a
Change-Id: I28d84235fb51a49492ed9c96794ba74f317f66b6
Partial-Bug: #1625253
This commit is contained in:
Timur Sufiev 2016-09-20 10:35:15 +03:00
parent 51c7487a4d
commit ef97d2fd98
1 changed files with 2 additions and 4 deletions

View File

@ -23,14 +23,12 @@
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/horizon/tools/gate/integration/devstack_gate_rc
function pre_test_hook {{
cd /opt/stack/new/horizon/tools/gate/integration
./pre_test_hook.sh '{testtype}'
/opt/stack/new/horizon/tools/gate/integration/pre_test_hook.sh '{testtype}'
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/horizon/tools/gate/integration
./post_test_hook.sh '{testtype}'
/opt/stack/new/horizon/tools/gate/integration/post_test_hook.sh '{testtype}'
}}
export -f post_test_hook