forked from qt-creator/qt-creator
AutoTest: Tweak output handling
..to be able to distinguish between the output channels. Some test frameworks use the stderr stream for printing relevant output. This is a preparation for coloring the output correctly later on. Change-Id: I3bfea9e552bde3621df99611a124b4f2d3b7d1da Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -68,13 +68,13 @@ TestOutputReader::TestOutputReader(const QFutureInterface<TestResultPtr> &future
|
||||
void TestOutputReader::processStdOutput(const QByteArray &outputLine)
|
||||
{
|
||||
processOutputLine(outputLine);
|
||||
emit newOutputLineAvailable(outputLine);
|
||||
emit newOutputLineAvailable(outputLine, OutputChannel::StdOut);
|
||||
}
|
||||
|
||||
void TestOutputReader::processStdError(const QByteArray &outputLine)
|
||||
{
|
||||
qWarning() << "AutoTest.Run: Ignored plain output:" << outputLine;
|
||||
emit newOutputLineAvailable(outputLine);
|
||||
emit newOutputLineAvailable(outputLine, OutputChannel::StdErr);
|
||||
}
|
||||
|
||||
void TestOutputReader::reportCrash()
|
||||
|
||||
Reference in New Issue
Block a user