diff --git a/tests/system/shared/debugger.py b/tests/system/shared/debugger.py index 586867fd5c8..6714dd52f7a 100644 --- a/tests/system/shared/debugger.py +++ b/tests/system/shared/debugger.py @@ -174,6 +174,8 @@ def doSimpleDebugging(currentKit, currentConfigName, expectedBPOrder=[], enableQ # param currentKit specifies the ID of the kit to use (see class Targets) def isMsvcConfig(currentKit): + if platform.system() not in ('Microsoft' 'Windows'): + return False switchViewTo(ViewConstants.PROJECTS) switchToBuildOrRunSettingsFor(currentKit, ProjectSettings.BUILD) @@ -186,7 +188,8 @@ def isMsvcConfig(currentKit): raise Exception("Kit '%s' is not activated in the project." % wantedKitName) index = waitForObject(wantedKitIndexString) toolTip = str(index.data(Qt.ToolTipRole).toString()) - compilerPattern = re.compile("Compiler:(?P.+)") + compilerPattern = re.compile('
Compiler:
(?P.+)' + '
Environment:') match = compilerPattern.search(toolTip) if match is None: test.warning("UI seems to have changed - failed to check for compiler.")