diff options
author | Kapileshwar Singh <kpsingh@google.com> | 2016-04-26 01:18:50 +0200 |
---|---|---|
committer | Javi Merino <javi.merino@arm.com> | 2016-04-26 17:49:33 +0100 |
commit | e43094c18c7c0ef13daae4b20044d1d9951ef9a7 (patch) | |
tree | 566a12bfdb01500a8d9002ab48df928d5e23a34f /tests | |
parent | 0cd75b7c929258a242bbd8d1a25cf88dfd538acd (diff) | |
download | trappy-e43094c18c7c0ef13daae4b20044d1d9951ef9a7.tar.gz |
tests: Fix Copyright tests for Google Inc.
Signed-off-by: Kapileshwar Singh <kpsingh@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_copyright.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_copyright.py b/tests/test_copyright.py index 8e78432..118b7f0 100644 --- a/tests/test_copyright.py +++ b/tests/test_copyright.py @@ -44,13 +44,17 @@ def copyright_is_valid(fname): if "ARM Limited" not in lines[0]: return False + apache_line = 6 + if "Google Inc" in lines[1]: + apache_line += 1 + # The Copyright includes the current year current_year = date.today().year if str(current_year) not in lines[0]: return False # It's the apache license - if "http://www.apache.org/licenses/LICENSE-2.0" not in lines[6]: + if "http://www.apache.org/licenses/LICENSE-2.0" not in lines[apache_line]: return False return True |