mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-01 12:06:54 -06:00
changed: only update reference data for tests marked as failures
This commit is contained in:
parent
6a630f9648
commit
414f64f46d
@ -90,19 +90,30 @@ tests[udq]="flow udq_actionx UDQ_WCONPROD udq_wconprod"
|
|||||||
tests[spe1_foam]="flow spe1_foam SPE1FOAM"
|
tests[spe1_foam]="flow spe1_foam SPE1FOAM"
|
||||||
|
|
||||||
changed_tests=""
|
changed_tests=""
|
||||||
for test_name in ${!tests[*]}
|
|
||||||
|
# Read failed tests
|
||||||
|
FAILED_TESTS=`cat $WORKSPACE/$configuration/build-opm-simulators/Testing/Temporary/LastTestsFailed*.log`
|
||||||
|
|
||||||
|
for failed_test in $FAILED_TESTS
|
||||||
do
|
do
|
||||||
binary=`echo ${tests[$test_name]} | awk -F ' ' '{print $1}'`
|
failed=`echo $failed_test | sed -e 's/.*:compareECLFiles_//g'`
|
||||||
dirname=`echo ${tests[$test_name]} | awk -F ' ' '{print $2}'`
|
for test_name in ${!tests[*]}
|
||||||
casename=`echo ${tests[$test_name]} | awk -F ' ' '{print $3}'`
|
do
|
||||||
tname=`echo ${tests[$test_name]} | awk -F ' ' '{print $4}'`
|
binary=`echo ${tests[$test_name]} | awk -F ' ' '{print $1}'`
|
||||||
test -z "$tname" && tname=$dirname
|
dirname=`echo ${tests[$test_name]} | awk -F ' ' '{print $2}'`
|
||||||
copyToReferenceDir \
|
casename=`echo ${tests[$test_name]} | awk -F ' ' '{print $3}'`
|
||||||
$configuration/build-opm-simulators/tests/results/$binary+$tname/ \
|
tname=`echo ${tests[$test_name]} | awk -F ' ' '{print $4}'`
|
||||||
$OPM_TESTS_ROOT/$dirname/opm-simulation-reference/$binary \
|
test -z "$tname" && tname=$dirname
|
||||||
$casename \
|
if grep -q "$failed" <<< "$binary+$casename"
|
||||||
EGRID INIT RFT SMSPEC UNRST UNSMRY
|
then
|
||||||
test $? -eq 0 && changed_tests="$changed_tests $test_name"
|
copyToReferenceDir \
|
||||||
|
$configuration/build-opm-simulators/tests/results/$binary+$tname/ \
|
||||||
|
$OPM_TESTS_ROOT/$dirname/opm-simulation-reference/$binary \
|
||||||
|
$casename \
|
||||||
|
EGRID INIT RFT SMSPEC UNRST UNSMRY
|
||||||
|
test $? -eq 0 && changed_tests="$changed_tests $test_name"
|
||||||
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# special tests
|
# special tests
|
||||||
|
Loading…
Reference in New Issue
Block a user