Skip to content

Commit 7732460

Browse files
authored
Merge pull request #1107 from oracle/minor-introspector-test-fix
minor test fixes
2 parents f1957f2 + e7c282f commit 7732460

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
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

src/integration-tests/introspector/wl-create-domain-pod.pyt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def createOracleDataSource(dsName,dsJNDI,dsGlobalTX,dsXAInterface,dsHost,dsPort,
191191
createDataSource(dsName, dsJNDI, dsDriver, dsGlobalTX, dsXAInterface, dsURL, dsUser, dsPass, dsMinSize, dsMaxSize, dsTest, dsTarget)
192192

193193
def createMySQLDataSource(dsName,dsJNDI,dsGlobalTX,dsXAInterface,dsHost,dsPort,dsDB,dsUser,dsPass,dsMinSize,dsMaxSize,dsTarget):
194-
dsDriver='com.mysql.cj.jdbc.Driver'
194+
#dsDriver='com.mysql.cj.jdbc.Driver'
195+
dsDriver='com.mysql.jdbc.Driver'
195196
dsURL='jdbc:mysql://' + dsHost + ':' + dsPort + '/' + dsDB
196197
dsTest='SQL SELECT 1'
197198
createDataSource(dsName, dsJNDI, dsDriver, dsGlobalTX, dsXAInterface, dsURL, dsUser, dsPass, dsMinSize, dsMaxSize, dsTest, dsTarget)

0 commit comments

Comments
 (0)