forked from qt-creator/qt-creator
Squish: Fix running tst_qtquick_creation3
...when running on build machine and VNC session has been started by Jenkins. If so, the DISPLAY variable must be set automatically and we should not override it. Change-Id: Ic38267256c5ab8889d67fe6a4e7e46dba6515a67 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -111,7 +111,8 @@ def modifyRunSettingsForHookIntoQtQuickUI(kitCount, workingDir, projectName, por
|
|||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
__addVariableToRunEnvironment__("DYLD_FRAMEWORK_PATH", qtLibPath)
|
__addVariableToRunEnvironment__("DYLD_FRAMEWORK_PATH", qtLibPath)
|
||||||
if not platform.system() in ('Microsoft', 'Windows'):
|
if not platform.system() in ('Microsoft', 'Windows'):
|
||||||
__addVariableToRunEnvironment__("DISPLAY", ":0.0")
|
if not os.getenv("DISPLAY"):
|
||||||
|
__addVariableToRunEnvironment__("DISPLAY", ":0.0")
|
||||||
result = qmlViewer
|
result = qmlViewer
|
||||||
switchViewTo(ViewConstants.EDIT)
|
switchViewTo(ViewConstants.EDIT)
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user