forked from qt-creator/qt-creator
Android: Don't check QtcProcess exit code
This is already baked into QtcProcess::Result. Change-Id: I02b017c7d26b5c42ea4e00cea5c3b393274edfdc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -204,7 +204,7 @@ bool AndroidAvdManager::removeAvd(const QString &name) const
|
||||
proc.setTimeoutS(5);
|
||||
proc.setCommand(command);
|
||||
proc.runBlocking();
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess && proc.exitCode() == 0;
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
static void avdConfigEditManufacturerTag(const QString &avdPathStr, bool recoverMode = false)
|
||||
|
@@ -202,7 +202,7 @@ void AndroidCreateKeystoreCertificate::buttonBoxAccepted()
|
||||
genKeyCertProc.setProcessUserEventWhileRunning();
|
||||
genKeyCertProc.runBlocking();
|
||||
|
||||
if (genKeyCertProc.result() != QtcProcess::FinishedWithSuccess || genKeyCertProc.exitCode() != 0) {
|
||||
if (genKeyCertProc.result() != QtcProcess::FinishedWithSuccess) {
|
||||
QMessageBox::critical(this, tr("Error"),
|
||||
genKeyCertProc.exitMessage() + '\n' + genKeyCertProc.allOutput());
|
||||
return;
|
||||
|
@@ -485,7 +485,7 @@ void AndroidDeployQtStep::runCommand(const CommandLine &command)
|
||||
buildProc.setCommand(command);
|
||||
buildProc.setProcessUserEventWhileRunning();
|
||||
buildProc.runBlocking();
|
||||
if (buildProc.result() != QtcProcess::FinishedWithSuccess || buildProc.exitCode() != 0) {
|
||||
if (buildProc.result() != QtcProcess::FinishedWithSuccess) {
|
||||
const QString error = buildProc.exitMessage();
|
||||
emit addOutput(error, OutputFormat::ErrorMessage);
|
||||
TaskHub::addTask(DeploymentTask(Task::Error, error));
|
||||
|
@@ -539,7 +539,7 @@ bool AndroidManager::checkKeystorePassword(const QString &keystorePath, const QS
|
||||
proc.setCommand(cmd);
|
||||
proc.setProcessUserEventWhileRunning();
|
||||
proc.runBlocking();
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess && proc.exitCode() == 0;
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
bool AndroidManager::checkCertificatePassword(const QString &keystorePath, const QString &keystorePasswd, const QString &alias, const QString &certificatePasswd)
|
||||
@@ -557,7 +557,7 @@ bool AndroidManager::checkCertificatePassword(const QString &keystorePath, const
|
||||
proc.setCommand({AndroidConfigurations::currentConfig().keytoolPath(), arguments});
|
||||
proc.setProcessUserEventWhileRunning();
|
||||
proc.runBlocking();
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess && proc.exitCode() == 0;
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
bool AndroidManager::checkCertificateExists(const QString &keystorePath,
|
||||
@@ -572,7 +572,7 @@ bool AndroidManager::checkCertificateExists(const QString &keystorePath,
|
||||
proc.setCommand({AndroidConfigurations::currentConfig().keytoolPath(), arguments});
|
||||
proc.setProcessUserEventWhileRunning();
|
||||
proc.runBlocking();
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess && proc.exitCode() == 0;
|
||||
return proc.result() == QtcProcess::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
using GradleProperties = QMap<QByteArray, QByteArray>;
|
||||
|
Reference in New Issue
Block a user