Skip to content

Commit

Permalink
test_licenses: Accept Oracle copyright
Browse files Browse the repository at this point in the history
The PVH boot support bits are under Oracle copyright.

Signed-off-by: Colin Percival <[email protected]>
  • Loading branch information
cperciva committed Dec 30, 2022
1 parent 7d2997f commit 399dc9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration_tests/style/test_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
)
ALIBABA_COPYRIGHT = "Copyright (C) 2019 Alibaba Cloud Computing. All rights reserved."
ALIBABA_LICENSE = "SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause"
ORACLE_COPYRIGHT = "Copyright © 2020, Oracle and/or its affiliates."
ORACLE_LICENSE = "SPDX-License-Identifier: Apache-2.0"

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

Expand Down Expand Up @@ -77,11 +79,16 @@ def _validate_license(filename):
ALIBABA_COPYRIGHT in copyright_info
and _look_for_license(file, ALIBABA_LICENSE)
)

has_oracle_copyright = ORACLE_COPYRIGHT in copyright_info and _look_for_license(
file, ORACLE_LICENSE
)
return (
has_amazon_copyright
or has_chromium_copyright
or has_tuntap_copyright
or has_alibaba_copyright
or has_oracle_copyright
)
return True

Expand Down

0 comments on commit 399dc9e

Please sign in to comment.