From a145058c96d47671a25911bca72dbf579ee8b3aa Mon Sep 17 00:00:00 2001 From: Xavier Hallade Date: Wed, 20 Mar 2024 15:14:15 +0100 Subject: [PATCH] increase search characters limit for license verification limit of 300 was preventing https://github.com/oneapi-src/unified-runtime/pull/1401 from passing the license verification test. --- scripts/verify_license.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/verify_license.py b/scripts/verify_license.py index 41b10a0d84..40f8b674b1 100644 --- a/scripts/verify_license.py +++ b/scripts/verify_license.py @@ -12,7 +12,7 @@ def verify_file_has_license(file): with open(file, 'r') as in_file: - contents = in_file.read(300) + contents = in_file.read(400) if "SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception" not in contents: raise Exception(f"{file} does not contain a license!")