Skip to content

Commit

Permalink
[actions] in .github/workflows/testsuite, do not compare to current r…
Browse files Browse the repository at this point in the history
…epo those processes that are not in the git repo
  • Loading branch information
valassi committed Nov 4, 2023
1 parent 10a4a29 commit fb27efa
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/testsuite_oneprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ function codegen() {
./CODEGEN/generateAndCompare.sh -q ${proc%.sa}
fi
# Check if there are any differences to the current repo
git checkout HEAD ${proc}/CODEGEN*.txt
if [ "${proc%.mad}" != "${proc}" ]; then
git checkout HEAD ${proc}/Cards/me5_configuration.txt
###sed -i 's/DEFAULT_F2PY_COMPILER=f2py.*/DEFAULT_F2PY_COMPILER=f2py3/' ${proc}/Source/make_opts
git checkout HEAD ${proc}/Source/make_opts
compare=true # enable comparison to current git repo
###compare=false # disable comparison to current git repo
if [ ${compare} ] && [ "$(git ls-tree --name-only HEAD ${proc})" != "" ]; then
git checkout HEAD ${proc}/CODEGEN*.txt
if [ "${proc%.mad}" != "${proc}" ]; then
git checkout HEAD ${proc}/Cards/me5_configuration.txt
###sed -i 's/DEFAULT_F2PY_COMPILER=f2py.*/DEFAULT_F2PY_COMPILER=f2py3/' ${proc}/Source/make_opts
git checkout HEAD ${proc}/Source/make_opts
fi
echo
echo "git diff (start)"
git diff --exit-code
echo "git diff (end)"
fi
echo
echo "git diff (start)"
git diff --exit-code
echo "git diff (end)"
}

#----------------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit fb27efa

Please sign in to comment.