Skip to content

Commit 5182b9a

Browse files
cpercivaroypat
authored andcommitted
test_licenses: Accept Oracle copyright
The PVH boot support bits are under Oracle copyright. Signed-off-by: Colin Percival <[email protected]>
1 parent f62d046 commit 5182b9a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/integration_tests/style/test_licenses.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
INTEL_LICENSE = "SPDX-License-Identifier: Apache-2.0"
3030
RIVOS_COPYRIGHT = "Copyright © 2023 Rivos, Inc."
3131
RIVOS_LICENSE = "SPDX-License-Identifier: Apache-2.0"
32+
ORACLE_COPYRIGHT = "Copyright © 2020, Oracle and/or its affiliates."
33+
ORACLE_LICENSE = "SPDX-License-Identifier: Apache-2.0"
34+
35+
EXCLUDE = ["build", ".kernel", ".git"]
3236

3337

3438
def _has_amazon_copyright(string):
@@ -90,13 +94,18 @@ def _validate_license(filename):
9094
file, RIVOS_LICENSE
9195
)
9296

97+
has_oracle_copyright = ORACLE_COPYRIGHT in copyright_info and _look_for_license(
98+
file, ORACLE_LICENSE
99+
)
100+
93101
return (
94102
has_amazon_copyright
95103
or has_chromium_copyright
96104
or has_tuntap_copyright
97105
or has_alibaba_copyright
98106
or has_intel_copyright
99107
or has_rivos_copyright
108+
or has_oracle_copyright
100109
)
101110

102111

0 commit comments

Comments
 (0)