forked from qt-creator/qt-creator
Utils: use cleaned stdout all over the place again
Amends 5ee880ce5e
Change-Id: Ie0202db7d8455372c3697087d9571db6706b45a1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -271,8 +271,8 @@ void ShellCommand::run(QFutureInterface<void> &future)
|
||||
proc.setExitCodeInterpreter(job.exitCodeInterpreter);
|
||||
proc.setTimeoutS(job.timeoutS);
|
||||
runCommand(proc, job.command, job.workingDirectory);
|
||||
stdOut += proc.stdOut();
|
||||
stdErr += proc.stdErr();
|
||||
stdOut += proc.cleanedStdOut();
|
||||
stdErr += proc.cleanedStdErr();
|
||||
d->m_lastExecExitCode = proc.exitCode();
|
||||
d->m_lastExecSuccess = proc.result() == ProcessResult::FinishedWithSuccess;
|
||||
if (!d->m_lastExecSuccess)
|
||||
@@ -352,11 +352,11 @@ void ShellCommand::runFullySynchronous(QtcProcess &process, const FilePath &work
|
||||
process.runBlocking();
|
||||
|
||||
if (!d->m_aborted) {
|
||||
const QString stdErr = process.stdErr();
|
||||
const QString stdErr = process.cleanedStdErr();
|
||||
if (!stdErr.isEmpty() && !(d->m_flags & SuppressStdErr))
|
||||
emit append(stdErr);
|
||||
|
||||
const QString stdOut = process.stdOut();
|
||||
const QString stdOut = process.cleanedStdOut();
|
||||
if (!stdOut.isEmpty() && d->m_flags & ShowStdOut) {
|
||||
if (d->m_flags & SilentOutput)
|
||||
emit appendSilently(stdOut);
|
||||
|
||||
Reference in New Issue
Block a user