AndroidTestRunner: print colored and brief logcats

Use colors only for non-ci environment since color characters
just make the output noisy and they are not rendered correctly.

Change-Id: I14c5f9c215fbbe9a020011943455d2df615d9bee
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
(cherry picked from commit 5a07f6ca4e7f00fada0db7f21892500831d537bb)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Assam Boudjelthia 2024-10-21 15:40:38 +03:00 committed by Qt Cherry-pick Bot
parent e7b28a3899
commit 7738c2fade

View File

@ -585,7 +585,11 @@ static bool pullFiles()
void printLogcat(const QString &formattedTime)
{
QStringList logcatArgs = { "logcat"_L1 };
QStringList logcatArgs = { "logcat"_L1, "-v"_L1, "brief"_L1 };
if (qEnvironmentVariable("QTEST_ENVIRONMENT") != "ci"_L1)
logcatArgs << "-v"_L1 << "color"_L1;
if (g_testInfo.sdkVersion <= 23 || g_testInfo.pid == -1)
logcatArgs << "-t"_L1 << formattedTime;
else