Fix T193 by setting a Qt environment variable.

This commit is contained in:
Mat Sutcliffe
2018-12-28 22:05:17 +00:00
parent d088a9bec4
commit b87b3177d3

View File

@@ -273,6 +273,12 @@ class MSVCBuilder(Builder):
os.environ.update(vs_env)
# On Windows, the default Qt logger doesn't write to stderr, but uses
# the Win32 API OutputDebugString instead, which Jenkins can't see.
# This environment variable forces it to use stderr. It also forces
# QPlainTestLogger::outputMessage to print to stdout.
os.environ['QT_FORCE_STDERR_LOGGING'] = '1'
def _get_qmake_spec(self):
return 'win32-msvc'
@@ -294,6 +300,9 @@ class MinGWBuilder(Builder):
os.environ['PATH'] += os.pathsep + gcc_path
os.environ['PATH'] += os.pathsep + path.abspath(path.join('c:', os.sep, 'Program Files', '7-Zip'))
# See comment in MSVCBuilder.
os.environ['QT_FORCE_STDERR_LOGGING'] = '1'
def _get_qmake_spec(self):
return 'win32-g++'