Skip to content

Commit

Permalink
Ammend license integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Diana Popa <[email protected]>
  • Loading branch information
dianpopa authored and Callisto13 committed Feb 4, 2022
1 parent 57bc95e commit 2a76872
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/integration_tests/style/test_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
ALIBABA_LICENSE = (
"SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause"
)
GEOFF_COPYRIGHT = (
"Copyright 2021 Geoff Johnstone. All Rights Reserved."
)
GEOFF_LICENSE = (
"SPDX-License-Identifier: Apache-2.0"
)

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

Expand Down Expand Up @@ -84,11 +90,16 @@ def _validate_license(filename):
ALIBABA_COPYRIGHT in copyright_info and
_look_for_license(file, ALIBABA_LICENSE)
)
has_geoff_copyright = (
GEOFF_COPYRIGHT in copyright_info and
_look_for_license(file, GEOFF_LICENSE)
)
return (
has_amazon_copyright or
has_chromium_copyright or
has_tuntap_copyright or
has_alibaba_copyright
has_alibaba_copyright or
has_geoff_copyright
)
return True

Expand Down

0 comments on commit 2a76872

Please sign in to comment.