runtest: Treat test timeouts as fatal
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 1 Jun 2020 14:08:10 +0000 (15:08 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 1 Jun 2020 14:08:10 +0000 (15:08 +0100)
commit9d7fb0fd8d93a619855fac4e3d4503a1ce299fdf
tree494f556bdace53de5ace0706d71b676fe381c122
parent13404d9173b39097755830a924555cd3f3294753
runtest: Treat test timeouts as fatal

If a test times out, that means it hasn't returned a prompt within
reasonable time.  Continuing to type at it is unlikely to be helpful,
since the lack of a prompt indicates that the subprocess has hung, so
subsequent tests are likely to time out as well.

This is particularly annoying in step 5, where the line that usually
times out, "(def! res2 (sum2 10000 0))" has its output ignored, so a
timeout is treated as success, meaning that runtest proceeds to the next
test, which of course also times out.
runtest.py