Improve serial logging for automation

For automation, we want to scrape the pass/fail count to know when
it's done. This change makes sure those counts get logged to the
serial port at least once a second, so we can quickly connect to
the serial port, get the counts, and disconnect.