Skip also QML tests in submodules when batching is on

This should be handled later ideally, for now we should skip and
QML tests targets are still being produced, which leads to errors
on WASM.

Task-number: QTBUG-109786
Change-Id: I3d0d1f3115e324c7a0cb036e972226310294b216
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Mikolaj Boc 2023-03-10 12:35:03 +01:00
parent 0b66d4a3d4
commit d7f0677368

View File

@ -434,7 +434,7 @@ function(qt_internal_add_test name)
set(batch_current_test TRUE)
endif()
if(batch_current_test)
if(batch_current_test OR (QT_BUILD_TESTS_BATCHED AND arg_QMLTEST))
if (QT_SUPERBUILD OR DEFINED ENV{TESTED_MODULE_COIN})
set(is_qtbase_test FALSE)
if(QT_SUPERBUILD)