Skip to content

Commit e7c282f

Browse files
author
Tom Barnes
committed
minor test fix: add a cleanup retry
1 parent d17ce81 commit e7c282f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/integration-tests/introspector/introspectTest.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ function cleanupMajor() {
136136
if [ $status -ne 0 ]; then
137137
trace "Error: cleanup failed. Cleanup output:"
138138
cat ${test_home}/cleanup.out
139-
exit 1
139+
trace "Error: cleanup failed."
140+
return 1
140141
fi
141142
}
142143

@@ -633,7 +634,8 @@ function checkDataSource() {
633634
#
634635

635636
if [ ! "$RERUN_INTROSPECT_ONLY" = "true" ]; then
636-
cleanupMajor
637+
# retry on failure
638+
cleanupMajor || cleanupMajor || exit 1
637639
else
638640
# This path assumes we've already run the test succesfully once, it re-uses
639641
# the existing domain-home/pv/pvc/secret/etc, deletes wl pods, deletes introspect job, then

0 commit comments

Comments
 (0)