kernel_build_test: refactor matched patterns and add parameterized test

The version string needed to understand yet another pattern in presubmit
(trailing -abP123456). In order to safeguard the existing values, add a
parameterized test, refactor the pattern in prefix/suffix and allow
multiple patterns to be matched.

Change-Id: I2d1ef77626f57e96fd145db833662971cfaaa72e
Signed-off-by: Matthias Maennich <maennich@google.com>
2 files changed