test harness: Set filename on error return

While calling `next` an error can occur while parsing the file.
However, we don't set the filename that is currently being processed, until `next` completed successfully.
This means that for invalid test names, the wrong filename was being displayed in the panic message.
The fix is to retrieve the correct filename when an error occurs and then setting the filename appropriately.
5138856a72Luuk de Gram committed on 5/15/2022, 7:30:59 AM· committed by Jakub Konkaparent1bdcbd1
1 file changedLine totals unavailable