Skip to content

Commit d997263

Browse files
jshum2479Tom Barnes
andauthored
Fix missing error output from WDT compareModel (#2351)
* compareModel.sh does not generate compare_model_stdout if there is a code failure. * use stdout for readibility * Update modelInImage.sh Co-authored-by: Tom Barnes <tom.barnes@oracle.com>
1 parent 3c55f0a commit d997263

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

operator/src/main/resources/scripts/modelInImage.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,12 +603,11 @@ function diff_model() {
603603
export __WLSDEPLOY_STORE_MODEL__=1
604604
# $1 - new model, $2 original model
605605

606-
# no need to redirect output, -output_dir for compareModel will generate the output file
607-
${WDT_BINDIR}/compareModel.sh -oracle_home ${ORACLE_HOME} -output_dir /tmp $1 $2 > /dev/null 2>&1
606+
${WDT_BINDIR}/compareModel.sh -oracle_home ${ORACLE_HOME} -output_dir /tmp $1 $2 > ${WDT_OUTPUT} 2>&1
608607
ret=$?
609608
if [ $ret -ne 0 ]; then
610609
trace SEVERE "WDT Compare Model failed:"
611-
cat /tmp/compare_model_stdout
610+
cat ${WDT_OUTPUT}
612611
exitOrLoop
613612
fi
614613

0 commit comments

Comments
 (0)