So far the test_readme have been use of re.match to find an email
address in the README file. This only matches if the email address
is at the start of the file. This commit changes this to re.search to
find email addresses anywhere in the README file.
Signed-off-by: Ricardo Ungerer <ungerer.ricardo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
self.assertIn('patch', data.lower(), msg="No patching information found in README.")
# Check that there is an email address in the README
email_regex = re.compile(r"[^@]+@[^@]+")
- self.assertTrue(email_regex.match(data), msg="No email address found in README.")
+ self.assertTrue(email_regex.search(data), msg="No email address found in README.")
def find_file_by_name(self, globs):
"""