From 59a95f6ac720bfa467793b38cfc59be01b6a3d06 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 20 Jan 2026 10:58:47 +0100 Subject: [PATCH] put message file in workspace /tmp is not the same when built in docker --- tests/update_reference_data.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/update_reference_data.sh b/tests/update_reference_data.sh index d3f18ad3b4..99b2b010e0 100755 --- a/tests/update_reference_data.sh +++ b/tests/update_reference_data.sh @@ -79,12 +79,13 @@ fi # the contents of ${REASON}). Empty ${REASON} ultimately starts an # interactive commit. changed_tests=`echo $changed_tests | xargs` -echo -e "Automatic Reference Data Update for ${REASON:-(Unknown)}\n" > /tmp/cmsg +MSGFILE=$WORKSPACE/deps/cmsg +echo -e "Automatic Reference Data Update for ${REASON:-(Unknown)}\n" > $MSGFILE if [ -z "$REASON" ] then - echo -e "Reason: fill in this\n" >> /tmp/cmsg + echo -e "Reason: fill in this\n" >> $MSGFILE else - echo -e "Reason: $REASON\n" >> /tmp/cmsg + echo -e "Reason: $REASON\n" >> $MSGFILE fi if [ -n "$CONVERT_ECL" ] then @@ -93,13 +94,13 @@ then pushd $WORKSPACE/deps/$dep > /dev/null name=`printf "%-14s" $dep` rev=`git rev-parse HEAD` - echo -e "$name = $rev" >> /tmp/cmsg + echo -e "$name = $rev" >> $MSGFILE popd > /dev/null done fi -echo -e "\n### Changed Tests ###\n" >> /tmp/cmsg -printf " * %s\n" ${changed_tests} >> /tmp/cmsg +echo -e "\n### Changed Tests ###\n" >> $MSGFILE +printf " * %s\n" ${changed_tests} >> $MSGFILE # --------------------------------------------------------------------------- @@ -124,9 +125,9 @@ fi # 4) Commit reference solution update. if [ -z "$REASON" ] then - git commit -a -t /tmp/cmsg + git commit -a -t $MSGFILE else - git commit -a -F /tmp/cmsg + git commit -a -F $MSGFILE fi # ===========================================================================