aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2022-06-07 06:08:32 +0000
committerSamuli Piippo <samuli.piippo@qt.io>2022-08-18 10:37:38 +0000
commit9567768fa37a51adb01a4e4493d6fb4c6dfc7679 (patch)
tree3898667151a69f2250115dd549ed7af4461db1d2 /recipes-qt
parent6b1fa542f635793e28412e4a8541a07397408385 (diff)
ptest: handle names with spaces
Correctly remove debug file also when directory names have spaces. Change-Id: Ia1d9efdd72d8f37417f2fd3f3f6d4a2736283ac9 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit faed0e8947593e4f74533fe5ae7335161aa0d94a) Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Diffstat (limited to 'recipes-qt')
-rw-r--r--recipes-qt/qt6/qt6-ptest.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc
index 5b5f316..6118f69 100644
--- a/recipes-qt/qt6/qt6-ptest.inc
+++ b/recipes-qt/qt6/qt6-ptest.inc
@@ -57,7 +57,7 @@ INSANE_SKIP:${PN}-ptest += "file-rdeps"
PACKAGESPLITFUNCS =+ "remove_ptest_debug"
remove_ptest_debug() {
- for i in $(find ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest/tests/auto -name .debug); do
- rm -rf $i
- done
+ if [ -e ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest/tests/auto ]; then
+ find ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest/tests/auto -depth -type d -name .debug -exec rm -rf '{}' \;
+ fi
}