Skip to content

Commit cf16fea

Browse files
committed
test_licenses: Accept Oracle copyright
The PVH boot support bits are under Oracle copyright. Signed-off-by: Colin Percival <[email protected]>
1 parent bbb617f commit cf16fea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration_tests/style/test_licenses.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
)
2424
ALIBABA_COPYRIGHT = "Copyright (C) 2019 Alibaba Cloud Computing. All rights reserved."
2525
ALIBABA_LICENSE = "SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause"
26+
ORACLE_COPYRIGHT = "Copyright © 2020, Oracle and/or its affiliates."
27+
ORACLE_LICENSE = "SPDX-License-Identifier: Apache-2.0"
2628

2729
EXCLUDE = ["build", ".kernel", ".git"]
2830

@@ -77,11 +79,16 @@ def _validate_license(filename):
7779
ALIBABA_COPYRIGHT in copyright_info
7880
and _look_for_license(file, ALIBABA_LICENSE)
7981
)
82+
83+
has_oracle_copyright = ORACLE_COPYRIGHT in copyright_info and _look_for_license(
84+
file, ORACLE_LICENSE
85+
)
8086
return (
8187
has_amazon_copyright
8288
or has_chromium_copyright
8389
or has_tuntap_copyright
8490
or has_alibaba_copyright
91+
or has_oracle_copyright
8592
)
8693
return True
8794

0 commit comments

Comments
 (0)