From 4b8200086bfc9acc8d25eca40b271ba33c0fcc35 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Tue, 12 Feb 2019 18:01:38 +0100 Subject: [PATCH] Squish: Fix handling of "Take a Tour" in startCreatorVerifyingClang Change-Id: Ica4414c6e284af69aedf06b7d56b7e72587c7e90 Reviewed-by: Christian Stenger --- tests/system/shared/clang.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/system/shared/clang.py b/tests/system/shared/clang.py index f012b12c548..810f652b0b3 100644 --- a/tests/system/shared/clang.py +++ b/tests/system/shared/clang.py @@ -23,11 +23,15 @@ # ############################################################################ +firstStart = True + def startCreatorVerifyingClang(useClang): + global firstStart try: # start Qt Creator with / without enabled ClangCodeModel plugin (without modifying settings) loadOrNoLoad = '-load' if useClang else '-noload' - startQC([loadOrNoLoad, 'ClangCodeModel']) + startQC([loadOrNoLoad, 'ClangCodeModel'], cancelTour=firstStart) + firstStart = False except RuntimeError: t, v = sys.exc_info()[:2] strv = str(v)