updated run-regressionTest.sh, added support for ignore_extra

This commit is contained in:
Torbjørn Skille 2019-06-03 11:17:32 +02:00
parent a7fd029cbe
commit 0d916193b2

View File

@ -22,12 +22,19 @@ cd ..
ecode=0
ignore_extra_kw=""
if grep -q "ignore_extra" <<< $ghprbCommentBody
then
ignore_extra_kw="-x"
fi
echo "=== Executing comparison for EGRID, INIT, UNRST and RFT files if these exists in refrece folder ==="
${COMPARE_ECL_COMMAND} ${INPUT_DATA_PATH}/opm-simulation-reference/${EXE_NAME}/${FILENAME} ${RESULT_PATH}/${FILENAME} ${ABS_TOL} ${REL_TOL}
${COMPARE_ECL_COMMAND} ${ignore_extra_kw} ${INPUT_DATA_PATH}/opm-simulation-reference/${EXE_NAME}/${FILENAME} ${RESULT_PATH}/${FILENAME} ${ABS_TOL} ${REL_TOL}
if [ $? -ne 0 ]
then
ecode=1
${COMPARE_ECL_COMMAND} -a ${INPUT_DATA_PATH}/opm-simulation-reference/${EXE_NAME}/${FILENAME} ${RESULT_PATH}/${FILENAME} ${ABS_TOL} ${REL_TOL}
${COMPARE_ECL_COMMAND} ${ignore_extra_kw} -a ${INPUT_DATA_PATH}/opm-simulation-reference/${EXE_NAME}/${FILENAME} ${RESULT_PATH}/${FILENAME} ${ABS_TOL} ${REL_TOL}
fi
exit $ecode