summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/checklayer/cases/common.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py
index 52c786f77b..fdfb5d18cd 100644
--- a/scripts/lib/checklayer/cases/common.py
+++ b/scripts/lib/checklayer/cases/common.py
@@ -26,7 +26,12 @@ class CommonCheckLayer(OECheckLayerTestCase):
26 data = f.read() 26 data = f.read()
27 self.assertTrue(data, 27 self.assertTrue(data,
28 msg="Layer contains a README file but it is empty.") 28 msg="Layer contains a README file but it is empty.")
29 self.assertIn('maintainer',data) 29
30 # If a layer's README references another README, then the checks below are not valid
31 if re.search('README', data, re.IGNORECASE):
32 return
33
34 self.assertIn('maintainer', data)
30 self.assertIn('patch',data) 35 self.assertIn('patch',data)
31 # Check that there is an email address in the README 36 # Check that there is an email address in the README
32 email_regex = re.compile(r"[^@]+@[^@]+") 37 email_regex = re.compile(r"[^@]+@[^@]+")