Squish: Fix trailing whitespace

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>
This commit is contained in:
Christian Stenger
2012-02-23 09:44:16 +01:00
parent 824342773c
commit b809e805aa
+3 -3
View File
@@ -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