Skip to content

Commit 651dd33

Browse files
Merge pull request #198 from ashu-011/clean_images
Clean leftover images
2 parents d2bd527 + 3d79986 commit 651dd33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

container-images/tcib/base/os/horizontest/run_horizontest.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ SELENIUM_IMPLICIT_WAIT=30
2525
[[ -z ${REPO_URL} ]] && REPO_URL="https://review.opendev.org/openstack/horizon"
2626
[[ -z ${HORIZON_REPO_BRANCH} ]] && HORIZON_REPO_BRANCH="master"
2727

28+
#This function is temporarily added until tempest cleanup is implemented
29+
function clean_leftover_images {
30+
openstack image list -c Name -f value --os-cloud default | xargs -I {} openstack image delete {} --os-cloud default
31+
}
32+
2833
function create_custom_resources {
2934
if ! openstack image show --os-cloud default ${IMAGE_FILE_NAME} ; then
3035
if [ ! -f "$IMAGE_FILE" ]; then
@@ -102,6 +107,7 @@ pushd horizon
102107
git pull --rebase
103108
git checkout ${HORIZON_REPO_BRANCH}
104109

110+
clean_leftover_images
105111
create_custom_resources
106112
pushd ${HORIZONTEST_DIR}/horizon/openstack_dashboard/test/integration_tests/
107113

0 commit comments

Comments
 (0)