diff options
author | Jani Heikkinen <jani.heikkinen@qt.io> | 2021-01-07 15:56:07 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2021-01-07 16:42:58 +0200 |
commit | 3d714c2e2db4bf061aacccd55e7197863039304c (patch) | |
tree | 0a5f0e87ba1dcba815d3a0dcadefe5214b10acb7 /tests/prebuild | |
parent | 038ff3344228e2a5b8abec1ff1effcc3257c820a (diff) |
Fix license testing in tqtc repositories
Pick-to: master
Change-Id: I4e755ad40ec1c102afccae52492cd004a96c7209
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Toni Saario <toni.saario@qt.io>
Diffstat (limited to 'tests/prebuild')
-rwxr-xr-x | tests/prebuild/license/tst_licenses.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/prebuild/license/tst_licenses.pl b/tests/prebuild/license/tst_licenses.pl index 22b07e33..0a40b74f 100755 --- a/tests/prebuild/license/tst_licenses.pl +++ b/tests/prebuild/license/tst_licenses.pl @@ -1,7 +1,7 @@ #!/usr/bin/env perl ############################################################################# ## -## Copyright (C) 2020 The Qt Company Ltd. +## Copyright (C) 2021 The Qt Company Ltd. ## Contact: https://www.qt.io/licensing/ ## ## This file is part of the test suite of the Qt Toolkit. @@ -605,6 +605,9 @@ sub run # Get module name without the preceding path $moduleName = defined($optModuleName) ? $optModuleName : basename($QT_MODULE_TO_TEST); + # Remove possible 'tqtc-' prefix from the module name + substr($moduleName, 0, 5, "") if (index($moduleName,"tqtc-") == 0); + # Skip the test (and return success) if we don't want to scan this module if ($optForceTest == 0) { |