Skip to content

Commit

Permalink
fix sip test
Browse files Browse the repository at this point in the history
only check for Python file if it is produced
  • Loading branch information
3nids committed Jun 6, 2018
1 parent 4e38d06 commit b227425
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/code_layout/test_sipfiles_uptodate.sh
Expand Up @@ -25,14 +25,16 @@ for module in "${modules[@]}"; do
echo "*** Missing header: $header for sipfile $sipfile"
else
outdiff=$(./scripts/sipify.pl -p python/${module}/auto_additions/${pyfile}.temp $header | diff python/$sipfile.in -)
outdiff2=$(diff python/${module}/auto_additions/${pyfile} python/${module}/auto_additions/${pyfile}.temp)
if [[ -n "$outdiff" ]]; then
echo " *** SIP file not up to date: $sipfile"
code=1
fi
if [[ -n "$outdiff2" ]]; then
echo " *** Python addition file not up to date: $sipfile"
code=1
if [[ -f python/${module}/auto_additions/${pyfile}.temp ]]; then
outdiff2=$(diff python/${module}/auto_additions/${pyfile} python/${module}/auto_additions/${pyfile}.temp)
if [[ -n "$outdiff2" ]]; then
echo " *** Python addition file not up to date: $sipfile"
code=1
fi
fi
fi
done < <(
Expand Down

0 comments on commit b227425

Please sign in to comment.