mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: only update files if they actually changed
fixes the changed tests output
This commit is contained in:
parent
5bfac05827
commit
9e01b3b790
@ -30,7 +30,8 @@ copyToReferenceDir () {
|
||||
continue
|
||||
fi
|
||||
diff -q "$SRC_DIR/$STEM.$filetype" "$DST_DIR/$STEM.$filetype"
|
||||
if test $? -ne 0 && test -n "$CONVERT_ECL"
|
||||
res=$?
|
||||
if test $res -ne 0 && test -n "$CONVERT_ECL"
|
||||
then
|
||||
cp $SRC_DIR/$STEM.$filetype $TMPDIR/new
|
||||
$CONVERT_ECL $TMPDIR/new/$STEM.$filetype
|
||||
@ -38,8 +39,11 @@ copyToReferenceDir () {
|
||||
$CONVERT_ECL $TMPDIR/orig/$STEM.$filetype
|
||||
diff -u $TMPDIR/orig/$STEM.F$filetype $TMPDIR/new/$STEM.F$filetype >> $WORKSPACE/data_diff
|
||||
fi
|
||||
cp "$SRC_DIR/$STEM.$filetype" $DST_DIR
|
||||
DIFF=0
|
||||
if test $res -ne 0
|
||||
then
|
||||
cp "$SRC_DIR/$STEM.$filetype" $DST_DIR
|
||||
DIFF=0
|
||||
fi
|
||||
done
|
||||
|
||||
return $DIFF
|
||||
|
Loading…
Reference in New Issue
Block a user