mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added: add new files in tests/update_reference_data.sh
a bit dangerous locally but this script is mainly for CI usage and this is annoying to have to do manually.
This commit is contained in:
parent
1c52da2367
commit
e190aec229
@ -12,6 +12,7 @@ copyToReferenceDir () {
|
|||||||
DST_DIR=$2;
|
DST_DIR=$2;
|
||||||
STEM=$3;
|
STEM=$3;
|
||||||
FILETYPES=${@:4};
|
FILETYPES=${@:4};
|
||||||
|
mkdir -p $DST_DIR
|
||||||
|
|
||||||
for filetype in $FILETYPES; do
|
for filetype in $FILETYPES; do
|
||||||
cp "$WORKSPACE/$SRC_DIR$STEM.$filetype" $DST_DIR
|
cp "$WORKSPACE/$SRC_DIR$STEM.$filetype" $DST_DIR
|
||||||
@ -213,6 +214,13 @@ then
|
|||||||
git checkout -b $BRANCH_NAME origin/master
|
git checkout -b $BRANCH_NAME origin/master
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add potential new files
|
||||||
|
untracked=`git status | sed '1,/Untracked files/d' | tail -n +3 | head -n -2`
|
||||||
|
if [ -n "$untracked" ]
|
||||||
|
then
|
||||||
|
git add $untracked
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$REASON" ]
|
if [ -z "$REASON" ]
|
||||||
then
|
then
|
||||||
git commit -a -t /tmp/cmsg
|
git commit -a -t /tmp/cmsg
|
||||||
|
Loading…
Reference in New Issue
Block a user