The root cause may be the return value for test.pyomo.exe. I suspect that it's not returning a nonzero value when a test fails.