From b809e805aa4fc7673ce1dd7e8c47563db869634b Mon Sep 17 00:00:00 2001 From: Christian Stenger <christian.stenger@nokia.com> Date: Thu, 23 Feb 2012 09:44:16 +0100 Subject: [PATCH] Squish: Fix trailing whitespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Additionally pushing Cancel instead of OK when leaving Options dialog (we don't change anything). Change-Id: I67ff5a891dc3a038822ff42e798981f00d633e80 Reviewed-by: Robert Löhning <robert.loehning@nokia.com> Reviewed-by: Bill King <bill.king@nokia.com> --- tests/system/shared/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index ff7937d1d5d..457fa805c1b 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -283,8 +283,8 @@ def getCorrectlyConfiguredTargets(): currentText = str(waitForObject(":QtSupport__Internal__QtVersionManager.QLabel").text) matches = pattern.match(currentText) if matches: - target = matches.group("target") - version = matches.group("version") + target = matches.group("target").strip() + version = matches.group("version").strip() if target in result: oldV = result[target] if version not in oldV: @@ -292,7 +292,7 @@ def getCorrectlyConfiguredTargets(): result.update({target:oldV}) else: result.update({target:[version]}) - clickButton(waitForObject(":Options.OK_QPushButton")) + clickButton(waitForObject(":Options.Cancel_QPushButton")) test.log("Correctly configured targets: %s" % str(result)) return result -- GitLab