Tempest: add option to execute cleanup always
This PS makes to control cleanup action. If there are FAILED cases, temepest-test returns non-zero code. _run-tests.sh.tpl exit immediately without cleanup. if set Values.conf.cleanup.force to true, cleanup is excuted always. Change-Id: Ie2ffee8faa9561f8acb4dc762fcfa9a282477f50 Closes-Bug: #1788076
This commit is contained in:
parent
98b3984ec7
commit
7bb4aed56c
@ -20,6 +20,10 @@ set -ex
|
||||
|
||||
tempest cleanup --init-saved-state
|
||||
|
||||
if [ "true" == "{{- .Values.conf.cleanup.force -}}" ]; then
|
||||
trap "tempest cleanup; exit" 1 ERR
|
||||
fi
|
||||
|
||||
{{ .Values.conf.script }}
|
||||
|
||||
tempest cleanup
|
||||
|
@ -198,6 +198,8 @@ conf:
|
||||
volume-feature-enabled:
|
||||
api_v1: False
|
||||
api_v3: True
|
||||
cleanup:
|
||||
force: false
|
||||
|
||||
pvc:
|
||||
enabled: true
|
||||
|
Loading…
Reference in New Issue
Block a user