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:
Jawon Choo 2018-08-21 11:28:37 +09:00
parent 98b3984ec7
commit 7bb4aed56c
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -198,6 +198,8 @@ conf:
volume-feature-enabled:
api_v1: False
api_v3: True
cleanup:
force: false
pvc:
enabled: true