Android: use --verbose for tests by default for CI

If the QT_BUILD_ENVIRONMENT is set to ci, add --verbose
by default.

Pick-to: 6.8
Change-Id: Ia9f2ba4c0191649d43a17bd76f61ca46180345d7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Assam Boudjelthia 2024-11-14 13:38:19 +02:00
parent 705bac063c
commit b2588969ce

View File

@ -668,7 +668,13 @@ function(qt_internal_add_test name)
endif()
qt_internal_android_test_runner_arguments("${name}" test_executable extra_test_args)
list(APPEND extra_test_args "--timeout" "${android_timeout}")
if(QT_ENABLE_VERBOSE_DEPLOYMENT)
set(build_environment "")
if(DEFINED ENV{QT_BUILD_ENVIRONMENT})
set(build_environment "$ENV{QT_BUILD_ENVIRONMENT}")
endif()
if(QT_ENABLE_VERBOSE_DEPLOYMENT OR build_environment STREQUAL "ci")
list(APPEND extra_test_args "--verbose")
endif()
set(test_working_dir "${CMAKE_CURRENT_BINARY_DIR}")