AndroidTestRunner: print failed build output when no --verbose is used
This helps with better debugging where in most cases the tests are run without --verbose, but if there's a build error, it won't be clear what went wrong, and only re-running with --verbose would give such details, which is just annoying to deal with. Change-Id: Icb8bcb8e5ba297d48b9e166c93523f25a21937b2 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> (cherry picked from commit 48dbc72c4467d120353dba46fdbc2f8ddc145629) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
bff859c2ed
commit
1c32faa784
@ -822,8 +822,10 @@ int main(int argc, char *argv[])
|
||||
return EXIT_ERROR;
|
||||
}
|
||||
|
||||
if (!execCommand(g_options.makeCommand, nullptr, true)) {
|
||||
qCritical("The build command \"%s\" failed", qPrintable(g_options.makeCommand));
|
||||
QByteArray buildOutput;
|
||||
if (!execCommand(g_options.makeCommand, &buildOutput, true)) {
|
||||
qCritical("The APK build command \"%s\" failed\n\n%s",
|
||||
qPrintable(g_options.makeCommand), buildOutput.constData());
|
||||
return EXIT_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user