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:
parent
51c7487a4d
commit
ef97d2fd98
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user