File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
container-images/tcib/base/os/horizontest Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ GROUP_NAME=admins
1616SELENIUM_EXPLICIT_WAIT=180
1717SELENIUM_PAGE_TIMEOUT=120
1818SELENIUM_IMPLICIT_WAIT=30
19+ HORIZONTEST_DEBUG_MODE=" ${HORIZONTEST_DEBUG_MODE:- false} "
1920
2021# assert mandatory variables have been set
2122[[ -z ${ADMIN_USERNAME} ]] && echo " ADMIN_USERNAME not set" && exit 1
@@ -25,6 +26,16 @@ SELENIUM_IMPLICIT_WAIT=30
2526[[ -z ${REPO_URL} ]] && REPO_URL=" https://review.opendev.org/openstack/horizon"
2627[[ -z ${HORIZON_REPO_BRANCH} ]] && HORIZON_REPO_BRANCH=" master"
2728
29+ function catch_error_if_debug {
30+ echo " File run_horizontest.sh has run into an error!"
31+ sleep infinity
32+ }
33+
34+ # Catch errors when in debug mode
35+ if [ ${HORIZONTEST_DEBUG_MODE} == true ]; then
36+ trap catch_error_if_debug ERR
37+ fi
38+
2839# This function is temporarily added until tempest cleanup is implemented
2940function clean_leftover_images {
3041 openstack image list -c Name -f value --os-cloud default | xargs -I {} openstack image delete {} --os-cloud default
@@ -141,4 +152,9 @@ cp -rf ${HORIZONTEST_DIR}/horizon/test_reports/* ${LOG_DIR}
141152
142153delete_custom_resources
143154
155+ # Keep pod in running state when in debug mode
156+ if [ ${HORIZONTEST_DEBUG_MODE} == true ]; then
157+ sleep infinity
158+ fi
159+
144160exit ${RETURN_VALUE}
You can’t perform that action at this time.
0 commit comments