Browse Source

Make main exit code reflect result of all tests

master
haavee 8 months ago
parent
commit
2531039168
  1. 5
      main

5
main

@ -60,9 +60,12 @@ cleanup()
{
# If, after all tests have run, the tempdir is empty, it means all tests ran succesfully
if [ -z "$(ls -A ${tempdir})" ]; then
# empty!
# empty == success
rm -rf ${tempdir};
exit 0;
fi
# not empty => #FAIL
exit -1
}
for f in `find . -type f -a -name test*.py`; do

Loading…
Cancel
Save