diff --git a/tests/system/shared/hook_utils.py b/tests/system/shared/hook_utils.py index 4a179eeee3dcdfc2d1110adb05efed339acb7214..79f627153aefe3eb1448bfb53cff54ca24038051 100644 --- a/tests/system/shared/hook_utils.py +++ b/tests/system/shared/hook_utils.py @@ -111,7 +111,8 @@ def modifyRunSettingsForHookIntoQtQuickUI(kitCount, workingDir, projectName, por if platform.system() == "Darwin": __addVariableToRunEnvironment__("DYLD_FRAMEWORK_PATH", qtLibPath) if not platform.system() in ('Microsoft', 'Windows'): - __addVariableToRunEnvironment__("DISPLAY", ":0.0") + if not os.getenv("DISPLAY"): + __addVariableToRunEnvironment__("DISPLAY", ":0.0") result = qmlViewer switchViewTo(ViewConstants.EDIT) return result