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:
Arne Morten Kvarving 2017-11-10 15:06:47 +01:00
parent 1c52da2367
commit e190aec229

View File

@ -12,6 +12,7 @@ copyToReferenceDir () {
DST_DIR=$2;
STEM=$3;
FILETYPES=${@:4};
mkdir -p $DST_DIR
for filetype in $FILETYPES; do
cp "$WORKSPACE/$SRC_DIR$STEM.$filetype" $DST_DIR
@ -213,6 +214,13 @@ then
git checkout -b $BRANCH_NAME origin/master
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" ]
then
git commit -a -t /tmp/cmsg