Fix console logging from lancelot test
The stderr output of the qmlscenegrabber subprocess was not forwarded. Change-Id: I38d304ad2570187de0552ad325149f66aacf3ac3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
878814ebd4
commit
af1cec2cda
|
@ -212,6 +212,7 @@ bool tst_Scenegraph::renderAndGrab(const QString& qmlFile, const QStringList& ex
|
||||||
{
|
{
|
||||||
bool usePipe = true; // Whether to transport the grabbed image using temp. file or pipe. TBD: cmdline option
|
bool usePipe = true; // Whether to transport the grabbed image using temp. file or pipe. TBD: cmdline option
|
||||||
QProcess grabber;
|
QProcess grabber;
|
||||||
|
grabber.setProcessChannelMode(QProcess::ForwardedErrorChannel);
|
||||||
QStringList args = extraArgs;
|
QStringList args = extraArgs;
|
||||||
QString tmpfile = usePipe ? QString("-") : QString("/tmp/qmlscenegrabber-%1-out.ppm").arg(QCoreApplication::applicationPid());
|
QString tmpfile = usePipe ? QString("-") : QString("/tmp/qmlscenegrabber-%1-out.ppm").arg(QCoreApplication::applicationPid());
|
||||||
args << qmlFile << "-o" << tmpfile;
|
args << qmlFile << "-o" << tmpfile;
|
||||||
|
|
Loading…
Reference in New Issue