forked from qt-creator/qt-creator
Utils: Use runBlocking()
Change-Id: I9df8b8fcdc08129691cac818c779a73f47b789c6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -87,9 +87,7 @@ RunResult DeviceShell::run(const CommandLine &cmd, const QByteArray &stdInData)
|
|||||||
qCDebug(deviceShellLog) << "Running fallback:" << fallbackCmd;
|
qCDebug(deviceShellLog) << "Running fallback:" << fallbackCmd;
|
||||||
proc.setCommand(fallbackCmd);
|
proc.setCommand(fallbackCmd);
|
||||||
proc.setWriteData(stdInData);
|
proc.setWriteData(stdInData);
|
||||||
|
proc.runBlocking();
|
||||||
proc.start();
|
|
||||||
proc.waitForFinished();
|
|
||||||
|
|
||||||
return RunResult{
|
return RunResult{
|
||||||
proc.exitCode(),
|
proc.exitCode(),
|
||||||
|
|||||||
Reference in New Issue
Block a user