File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
tests/integration_tests/style Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 23
23
)
24
24
ALIBABA_COPYRIGHT = "Copyright (C) 2019 Alibaba Cloud Computing. All rights reserved."
25
25
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"
26
28
27
29
EXCLUDE = ["build" , ".kernel" , ".git" ]
28
30
@@ -77,11 +79,16 @@ def _validate_license(filename):
77
79
ALIBABA_COPYRIGHT in copyright_info
78
80
and _look_for_license (file , ALIBABA_LICENSE )
79
81
)
82
+
83
+ has_oracle_copyright = ORACLE_COPYRIGHT in copyright_info and _look_for_license (
84
+ file , ORACLE_LICENSE
85
+ )
80
86
return (
81
87
has_amazon_copyright
82
88
or has_chromium_copyright
83
89
or has_tuntap_copyright
84
90
or has_alibaba_copyright
91
+ or has_oracle_copyright
85
92
)
86
93
return True
87
94
You can’t perform that action at this time.
0 commit comments