CTest: break after first regex match on output

PASS_REGULAR_EXPRESSION and FAIL_REGULAR_EXPRESSION both take a list of expressions.
Stop searching if the first of those has matched the output as the result will not
change anymore.
Merge topic 'only-first-output-regex' into next

12cf7bc CTest: break after first regex match on output