manually return the right exit code in runtest.py