WIP: pass sub-process output through tl::Log in unit tests for proper XML escaping into JUnit files.

This commit is contained in:
Matthias Koefferlein 2018-06-20 22:25:03 +02:00
parent ec0fad0d75
commit 087740d326
1 changed files with 4 additions and 3 deletions

View File

@ -28,12 +28,10 @@
#include <QProcess>
#include <QProcessEnvironment>
int run_pymodtest (tl::TestBase * /*_this*/, const std::string &fn)
{
QProcess process;
process.setProcessChannelMode (QProcess::ForwardedChannels);
process.setProcessChannelMode (QProcess::MergedChannels);
QStringList args;
@ -48,6 +46,9 @@ int run_pymodtest (tl::TestBase * /*_this*/, const std::string &fn)
process.start (tl::to_qstring (STRINGIFY (PYTHON)), args);
process.waitForFinished (-1);
tl::info << process.readAll ().constData ();
return process.exitCode ();
}