summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/buildperf/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 9700c05925..2c102554b9 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -428,6 +428,11 @@ class BuildPerfTestCase(unittest.TestCase):
428 n_e_v, revision = nevr.rsplit('-', 1) 428 n_e_v, revision = nevr.rsplit('-', 1)
429 match = re.match(r'^(?P<name>\S+)-((?P<epoch>[0-9]{1,5})_)?(?P<version>[0-9]\S*)$', 429 match = re.match(r'^(?P<name>\S+)-((?P<epoch>[0-9]{1,5})_)?(?P<version>[0-9]\S*)$',
430 n_e_v) 430 n_e_v)
431 if not match:
432 # If we're not able to parse a version starting with a number, just
433 # take the part after last dash
434 match = re.match(r'^(?P<name>\S+)-((?P<epoch>[0-9]{1,5})_)?(?P<version>[^-]+)$',
435 n_e_v)
431 name = match.group('name') 436 name = match.group('name')
432 version = match.group('version') 437 version = match.group('version')
433 epoch = match.group('epoch') 438 epoch = match.group('epoch')