Skip to content

Commit

Permalink
Fixed test script
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Sep 19, 2024
1 parent 40d3d4b commit f3ff1ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ NORMAL=$(tput sgr0)
GREEN="\033[0;32m"
RED="\033[0;31m"

EXIT_CODE=0

for file in *.py; do
if [ -f "$file" ]; then
python3 "$file" 1> /dev/null 2> /tmp/stderr.txt
Expand All @@ -13,7 +15,9 @@ for file in *.py; do
else
echo -e "${BOLD}${RED}[FAILED] ${NORMAL}${BOLD}$file${NORMAL}"
cat /tmp/stderr.txt | sed 's/^/ /'
EXIT_CODE=1
fi
fi
done

exit $EXIT_CODE

0 comments on commit f3ff1ed

Please sign in to comment.