forked from qt-creator/qt-creator
Android: Give preference to detected deploy errors
Task-number: QTCREATORBUG-17414 Change-Id: I35171dc8649c9ecd790a1a508ccc3d4f690ee67b Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -325,11 +325,12 @@ AndroidDeployQtStep::DeployErrorCode AndroidDeployQtStep::runDeploy(QFutureInter
|
||||
emit addOutput(tr("The process \"%1\" crashed.").arg(m_command), BuildStep::OutputFormat::ErrorMessage);
|
||||
}
|
||||
|
||||
if (exitCode == 0 && exitStatus == QProcess::NormalExit) {
|
||||
if (deployError != NoError && m_uninstallPreviousPackageRun) {
|
||||
deployError = Failure;
|
||||
}
|
||||
} else {
|
||||
if (deployError != NoError) {
|
||||
if (m_uninstallPreviousPackageRun)
|
||||
deployError = Failure; // Even re-install failed. Set to Failure.
|
||||
} else if (exitCode != 0 || exitStatus != QProcess::NormalExit) {
|
||||
// Set the deployError to Failure when no deployError code was detected
|
||||
// but the adb tool failed otherwise relay the detected deployError.
|
||||
deployError = Failure;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user