Tests: Allow RunCMake expected result code to be a regex

This will allow the '-result.txt' files to specify a regex matching
different results on different platforms.
Merge topic 'test-RunCMake-updates' into next

29533380 Tests: Allow RunCMake expected result code to be a regex