diff --git a/tools/lint/license.yml b/tools/lint/license.yml index c7909e5b6c46..8017cc6b7825 100644 --- a/tools/lint/license.yml +++ b/tools/lint/license.yml @@ -26,6 +26,8 @@ license: - gradle.properties # might not work with license - gradle/wrapper/gradle-wrapper.properties + # tests + - js/src/devtools/rootAnalysis/t/ - mobile/android/components/extensions - mobile/android/geckoview/src/main/AndroidManifest.xml - mobile/android/geckoview/src/main/res/drawable/ic_generic_file.xml @@ -48,6 +50,7 @@ license: - security/mac/hardenedruntime/production.entitlements.xml - servo/components/hashglobe/src/alloc.rs - servo/components/hashglobe/src/shim.rs + - testing/marionette/harness/marionette_harness/www/ - toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.cc - toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h - toolkit/mozapps/update/updater/crctable.h diff --git a/tools/lint/license/__init__.py b/tools/lint/license/__init__.py index 35b224d3aa77..68a9b7a10740 100644 --- a/tools/lint/license/__init__.py +++ b/tools/lint/license/__init__.py @@ -84,7 +84,9 @@ def is_test(f): # For the unit tests return False return ( - "/test" in f + "/tests/" in f + or "/test/" in f + or "/test_" in f or "/gtest" in f or "/crashtest" in f or "/mochitest" in f