diff options
| author | Armando Migliaccio <armando.migliaccio@eu.citrix.com> | 2012-01-06 17:49:57 +0000 |
|---|---|---|
| committer | Armando Migliaccio <armando.migliaccio@eu.citrix.com> | 2012-01-06 17:49:57 +0000 |
| commit | de4fb9302aab979ac3dbb8b2e62c9f9255f8f16f (patch) | |
| tree | 88653597de95a7e25d16528f67d73b8fab381e0b /nova/tests | |
| parent | 613d1dbc87d9af5d07dc277f0264d6fe1e2e073b (diff) | |
Bug #912858: test_authors_up_to_date does not deal with capitalized names properly
ensure we are not fooled by capitalized names, by turning emails and names into lower cases before the matching.
Change-Id: Idbb8535174c0f1451ad6fd0628f35508f0f1e466
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_misc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/tests/test_misc.py b/nova/tests/test_misc.py index 6bee4022f..0a673e68e 100644 --- a/nova/tests/test_misc.py +++ b/nova/tests/test_misc.py @@ -47,7 +47,8 @@ class ProjectTestCase(test.TestCase): missing = set() contributors = set() mailmap = parse_mailmap(os.path.join(topdir, '.mailmap')) - authors_file = open(os.path.join(topdir, 'Authors'), 'r').read() + authors_file = open(os.path.join(topdir, + 'Authors'), 'r').read().lower() if os.path.exists(os.path.join(topdir, '.git')): for email in commands.getoutput('git log --format=%ae').split(): @@ -55,7 +56,7 @@ class ProjectTestCase(test.TestCase): continue if "jenkins" in email and "openstack.org" in email: continue - email = '<' + email + '>' + email = '<' + email.lower() + '>' contributors.add(str_dict_replace(email, mailmap)) else: return |
