Merge pull request #1996 from akva2/fix_missing_rft_fallout

fixed: don't flag error if rfts are missing (most cases lack them)
This commit is contained in:
Arne Morten Kvarving
2019-09-06 16:00:53 +02:00
committed by GitHub

View File

@@ -17,6 +17,12 @@ copyToReferenceDir () {
DIFF=1
for filetype in $FILETYPES
do
# Don't flag as changed if both reference and result dir lack a file type
# In particular to handle the optional RFT's
if [ ! -f $WORKSPACE/$SRC_DIR$STEM.$filetype ] && [ ! -f $DST_DIR/$STEM.$filetype ]
then
continue
fi
diff -q "$WORKSPACE/$SRC_DIR$STEM.$filetype" "$DST_DIR/$STEM.$filetype"
if test $? -ne 0
then