Skip to content

Commit 21dac85

Browse files
alindimagbionescu
authored andcommitted
tests: add 2021 to test_for_valid_licenses
Signed-off-by: alindima <[email protected]>
1 parent 26fa69e commit 21dac85

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/integration_tests/style/test_rust.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os
66
import framework.utils as utils
77

8-
AMAZON_COPYRIGHT_YEARS = (2018, 2019, 2020)
8+
AMAZON_COPYRIGHT_YEARS = (2018, 2019, 2020, 2021)
99
AMAZON_COPYRIGHT = (
1010
"Copyright {} Amazon.com, Inc. or its affiliates. All Rights Reserved."
1111
)
@@ -52,21 +52,21 @@ def _validate_license(filename):
5252
copy = file.readline()
5353
local_license = file.readline()
5454
has_amazon_copyright = (
55-
_has_amazon_copyright(copy) and
56-
AMAZON_LICENSE in local_license
55+
_has_amazon_copyright(copy) and
56+
AMAZON_LICENSE in local_license
5757
)
5858
has_chromium_copyright = (
59-
CHROMIUM_COPYRIGHT in copy and
60-
CHROMIUM_LICENSE in local_license
59+
CHROMIUM_COPYRIGHT in copy and
60+
CHROMIUM_LICENSE in local_license
6161
)
6262
has_tuntap_copyright = (
63-
TUNTAP_COPYRIGHT in copy and
64-
TUNTAP_LICENSE in local_license
63+
TUNTAP_COPYRIGHT in copy and
64+
TUNTAP_LICENSE in local_license
6565
)
6666
return (
67-
has_amazon_copyright or
68-
has_chromium_copyright or
69-
has_tuntap_copyright
67+
has_amazon_copyright or
68+
has_chromium_copyright or
69+
has_tuntap_copyright
7070
)
7171
return True
7272

0 commit comments

Comments
 (0)