Some refactorings to improve wildcard performance on debug CTS builds
Measuring a VS2019 debug build running "--deqp-case=dEQP-VK.*faketestname" these changes
take the runtime from 800 seconds to 240 seconds
Tests run locally:
--deqp-case=dEQP-VK.*faketestname and confirmed zero tests run and improved performance with debug build
Following commands run and confirmed same count of tests before and after the change:
Wildcard without dot
--deqp-case=dEQP-VK.ray_tracing_pipeline*rgen*
Wildcard with dot
--deqp-case=dEQP-VK.info.*
Wildcard at start and end
--deqp-case=*peer_memory*
Components: Framework
VK-GL-CTS issue: 4149
Change-Id: I91348b3e0824014897393b6ee07864a4b786186f