aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/shared
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-01-27 10:28:24 +0100
committerChristian Stenger <christian.stenger@qt.io>2020-01-27 14:38:24 +0000
commit51cc14c738748d359df34e2bd1154b1a2da0df1c (patch)
tree7e0ec0479268edcb09f0d7afafca52acb48f2208 /tests/system/shared
parent5dcd9685f9515f5a07fba210fd3bbc7737ed2d3c (diff)
Squish: Close Link with Qt banner at startup
Change-Id: I02e9a1b4eecc21804a2570a72cbdc0b19ae4f7a1 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests/system/shared')
-rw-r--r--tests/system/shared/clang.py2
-rw-r--r--tests/system/shared/qtcreator.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/system/shared/clang.py b/tests/system/shared/clang.py
index 99bb1b6f94..cccafa8a20 100644
--- a/tests/system/shared/clang.py
+++ b/tests/system/shared/clang.py
@@ -30,7 +30,7 @@ def startCreatorVerifyingClang(useClang):
try:
# start Qt Creator with / without enabled ClangCodeModel plugin (without modifying settings)
loadOrNoLoad = '-load' if useClang else '-noload'
- startQC([loadOrNoLoad, 'ClangCodeModel'], cancelTour=firstStart)
+ startQC([loadOrNoLoad, 'ClangCodeModel'], closeLinkToQt=firstStart, cancelTour=firstStart)
firstStart = False
except RuntimeError:
t, v = sys.exc_info()[:2]
diff --git a/tests/system/shared/qtcreator.py b/tests/system/shared/qtcreator.py
index 7d2a45490a..295a9ed2cf 100644
--- a/tests/system/shared/qtcreator.py
+++ b/tests/system/shared/qtcreator.py
@@ -55,7 +55,7 @@ source("../../shared/welcome.py")
source("../../shared/workarounds.py") # include this at last
# additionalParameters must be a list or tuple of strings or None
-def startQC(additionalParameters=None, withPreparedSettingsPath=True, cancelTour=True):
+def startQC(additionalParameters=None, withPreparedSettingsPath=True, closeLinkToQt=True, cancelTour=True):
global SettingsPath
appWithOptions = ['"Qt Creator"' if platform.system() == 'Darwin' else "qtcreator"]
if withPreparedSettingsPath:
@@ -66,6 +66,8 @@ def startQC(additionalParameters=None, withPreparedSettingsPath=True, cancelTour
appWithOptions.extend(('-platform', 'windows:dialogs=none'))
test.log("Starting now: %s" % ' '.join(appWithOptions))
appContext = startApplication(' '.join(appWithOptions))
+ if closeLinkToQt:
+ clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
if cancelTour:
clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
return appContext;