testrunner: avoid capturing a regex group we don't care about

Authored by martinvonz.