Skip to content

Commit

Permalink
Ignore notes in integrational tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 27, 2019
1 parent d838a96 commit be4b9f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ do
${ROOT_PATH}/scripts/install.sh ${SERVICE_NAME}
echo Running mypy for ${FILE_NAME}
if [[ ! -f ${EXPECTED} ]]; then
mypy ${EXAMPLE} 1> ${EXPECTED} || true
mypy ${EXAMPLE} | grep -v ' note: ' > ${EXPECTED} || true
echo "Created ${EXPECTED}"
continue
fi
mypy ${EXAMPLE} 1> ${OUTPUT} || true
mypy ${EXAMPLE} | grep -v ' note: ' > ${OUTPUT} || true
DIFF=`diff ${OUTPUT} ${EXPECTED}` || true
rm ${OUTPUT}

Expand All @@ -34,3 +34,5 @@ do
exit 1
fi
done

echo "All tests passed"

0 comments on commit be4b9f8

Please sign in to comment.