From 3d714c2e2db4bf061aacccd55e7197863039304c Mon Sep 17 00:00:00 2001 From: Jani Heikkinen Date: Thu, 7 Jan 2021 15:56:07 +0200 Subject: Fix license testing in tqtc repositories Pick-to: master Change-Id: I4e755ad40ec1c102afccae52492cd004a96c7209 Reviewed-by: Friedemann Kleint Reviewed-by: Toni Saario --- tests/prebuild/license/tst_licenses.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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) { -- cgit v1.2.3