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.

Pick-to: 6.8
Change-Id: I14c5f9c215fbbe9a020011943455d2df615d9bee
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
This commit is contained in:
Assam Boudjelthia 2024-10-21 15:40:38 +03:00
parent 252550877d
commit 5a07f6ca4e

View File

@ -555,7 +555,11 @@ static bool pullResults()
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