make test run output processing more robust

With this patch, junk after the result lines is ignored rather than causing the driver to blow up.