diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/signing.py | 4 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/sstate.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/signing.py b/meta/lib/oeqa/selftest/cases/signing.py index 93b15ae681..202d54994b 100644 --- a/meta/lib/oeqa/selftest/cases/signing.py +++ b/meta/lib/oeqa/selftest/cases/signing.py | |||
| @@ -157,8 +157,8 @@ class Signing(OESelftestTestCase): | |||
| 157 | bitbake('-c clean %s' % test_recipe) | 157 | bitbake('-c clean %s' % test_recipe) |
| 158 | bitbake('-c populate_lic %s' % test_recipe) | 158 | bitbake('-c populate_lic %s' % test_recipe) |
| 159 | 159 | ||
| 160 | recipe_sig = glob.glob(sstatedir + '/*/*:ed:*_populate_lic.tgz.sig') | 160 | recipe_sig = glob.glob(sstatedir + '/*/*/*:ed:*_populate_lic.tgz.sig') |
| 161 | recipe_tgz = glob.glob(sstatedir + '/*/*:ed:*_populate_lic.tgz') | 161 | recipe_tgz = glob.glob(sstatedir + '/*/*/*:ed:*_populate_lic.tgz') |
| 162 | 162 | ||
| 163 | self.assertEqual(len(recipe_sig), 1, 'Failed to find .sig file.') | 163 | self.assertEqual(len(recipe_sig), 1, 'Failed to find .sig file.') |
| 164 | self.assertEqual(len(recipe_tgz), 1, 'Failed to find .tgz file.') | 164 | self.assertEqual(len(recipe_tgz), 1, 'Failed to find .tgz file.') |
diff --git a/meta/lib/oeqa/selftest/cases/sstate.py b/meta/lib/oeqa/selftest/cases/sstate.py index 410dec64fc..80ce9e353c 100644 --- a/meta/lib/oeqa/selftest/cases/sstate.py +++ b/meta/lib/oeqa/selftest/cases/sstate.py | |||
| @@ -56,11 +56,11 @@ class SStateBase(OESelftestTestCase): | |||
| 56 | def search_sstate(self, filename_regex, distro_specific=True, distro_nonspecific=True): | 56 | def search_sstate(self, filename_regex, distro_specific=True, distro_nonspecific=True): |
| 57 | result = [] | 57 | result = [] |
| 58 | for root, dirs, files in os.walk(self.sstate_path): | 58 | for root, dirs, files in os.walk(self.sstate_path): |
| 59 | if distro_specific and re.search("%s/[a-z0-9]{2}$" % self.hostdistro, root): | 59 | if distro_specific and re.search(r"%s/%s/[a-z0-9]{2}/[a-z0-9]{2}$" % (self.sstate_path, self.hostdistro), root): |
| 60 | for f in files: | 60 | for f in files: |
| 61 | if re.search(filename_regex, f): | 61 | if re.search(filename_regex, f): |
| 62 | result.append(f) | 62 | result.append(f) |
| 63 | if distro_nonspecific and re.search("%s/[a-z0-9]{2}$" % self.sstate_path, root): | 63 | if distro_nonspecific and re.search(r"%s/[a-z0-9]{2}/[a-z0-9]{2}$" % self.sstate_path, root): |
| 64 | for f in files: | 64 | for f in files: |
| 65 | if re.search(filename_regex, f): | 65 | if re.search(filename_regex, f): |
| 66 | result.append(f) | 66 | result.append(f) |
