summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-03-10 10:29:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-11 16:50:44 +0000
commitdce7290a4f57cf7a7bc1568eecc43bfa49ea8e76 (patch)
tree9a1e154293095ea083518265084bac411c61c0b8 /meta/lib/oeqa
parentcbd87f31980f80abd76a213d9bbe00b83063f831 (diff)
downloadpoky-dce7290a4f57cf7a7bc1568eecc43bfa49ea8e76.tar.gz
selftest/prservice.py: Sanitize package version when looking for stamp
Currently when using a git version the check for the stamp, using regex, will fail because of plus sign in the version. With this change the version is escaped before adding it to the regex. (From OE-Core rev: 1aefa6a4dec84a5581aab70451bb84801b3b3615) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/prservice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/prservice.py b/meta/lib/oeqa/selftest/prservice.py
index 66638de8f8..1b9a510fd4 100644
--- a/meta/lib/oeqa/selftest/prservice.py
+++ b/meta/lib/oeqa/selftest/prservice.py
@@ -27,7 +27,7 @@ class BitbakePrTests(oeSelfTest):
27 package_stamps_path = "/".join(stampdata[:-1]) 27 package_stamps_path = "/".join(stampdata[:-1])
28 stamps = [] 28 stamps = []
29 for stamp in os.listdir(package_stamps_path): 29 for stamp in os.listdir(package_stamps_path):
30 find_stamp = re.match("%s\.%s\.([a-z0-9]{32})" % (prefix, recipe_task), stamp) 30 find_stamp = re.match("%s\.%s\.([a-z0-9]{32})" % (re.escape(prefix), recipe_task), stamp)
31 if find_stamp: 31 if find_stamp:
32 stamps.append(find_stamp.group(1)) 32 stamps.append(find_stamp.group(1))
33 self.assertFalse(len(stamps) == 0, msg="Cound not find stamp for task %s for recipe %s" % (recipe_task, package_name)) 33 self.assertFalse(len(stamps) == 0, msg="Cound not find stamp for task %s for recipe %s" % (recipe_task, package_name))