Skip to content

Commit 4f4f708

Browse files
committed
Fix the test_create_domain_on_exist_dir test to call the correct create domain script, copy the generated operator and domain yaml files into the dumped files area to help with debugging
1 parent 31a0ab1 commit 4f4f708

File tree

1 file changed

+7
-1
lines changed
  • src/integration-tests/bash

1 file changed

+7
-1
lines changed

src/integration-tests/bash/run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,12 @@ function state_dump {
346346

347347
mkdir -p ${DUMP_DIR}
348348

349+
# dump the generated operator and domain yaml files if there are any
350+
if [ -d ${USER_PROJECTS} ]; then
351+
trace Dumping the generated yaml files
352+
cp -r ${USER_PROJECTS} ${DUMP_DIR}
353+
fi
354+
349355
# Test output is captured to ${TESTOUT} when run.sh is run stand-alone
350356
if [ -f ${TESTOUT:-NoSuchFile.out} ]; then
351357
trace Copying ${TESTOUT} to ${DUMP_DIR}/test_suite.out
@@ -2316,7 +2322,7 @@ function test_create_domain_on_exist_dir {
23162322
fi
23172323

23182324
trace "run the script to create the domain"
2319-
sh ${tmp_dir}/create-weblogic-domain.sh -i $inputs -o $USER_PROJECTS_DIR
2325+
sh $PROJECT_ROOT/kubernetes/create-weblogic-domain.sh -i $inputs -o $USER_PROJECTS_DIR
23202326
local exit_code=$?
23212327
if [ ${exit_code} -eq 1 ] ; then
23222328
trace "[SUCCESS] create domain job failed, this is the expected behavior"

0 commit comments

Comments
 (0)