mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-22 14:07:15 +02:00
WIP: pass sub-process output through tl::Log in unit tests for proper XML escaping into JUnit files.
This commit is contained in:
@@ -28,12 +28,10 @@
|
|||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QProcessEnvironment>
|
#include <QProcessEnvironment>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int run_pymodtest (tl::TestBase * /*_this*/, const std::string &fn)
|
int run_pymodtest (tl::TestBase * /*_this*/, const std::string &fn)
|
||||||
{
|
{
|
||||||
QProcess process;
|
QProcess process;
|
||||||
process.setProcessChannelMode (QProcess::ForwardedChannels);
|
process.setProcessChannelMode (QProcess::MergedChannels);
|
||||||
|
|
||||||
QStringList args;
|
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.start (tl::to_qstring (STRINGIFY (PYTHON)), args);
|
||||||
process.waitForFinished (-1);
|
process.waitForFinished (-1);
|
||||||
|
|
||||||
|
tl::info << process.readAll ().constData ();
|
||||||
|
|
||||||
return process.exitCode ();
|
return process.exitCode ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user