Correcting runtests.sh to give a bad status when tests fail