From 399dc9e47dd5aca999eead870d020df7b3c4dde2 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Fri, 30 Dec 2022 14:54:28 -0800 Subject: [PATCH] test_licenses: Accept Oracle copyright The PVH boot support bits are under Oracle copyright. Signed-off-by: Colin Percival --- tests/integration_tests/style/test_licenses.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration_tests/style/test_licenses.py b/tests/integration_tests/style/test_licenses.py index 56e1772ccf57..1e24fad97830 100644 --- a/tests/integration_tests/style/test_licenses.py +++ b/tests/integration_tests/style/test_licenses.py @@ -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"] @@ -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