Squish: Fixed handling of targets

Done-with: Christian Stenger

Change-Id: Iaa03a3df2151706bbe5d508a20f70a5007817d4d
Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
Robert Loehning
2012-02-29 12:10:12 +01:00
committed by Bill King
parent f49098683a
commit 3aaa3b3fa4
4 changed files with 27 additions and 18 deletions
+16 -7
View File
@@ -288,13 +288,22 @@ def getCorrectlyConfiguredTargets():
if matches:
target = matches.group("target").strip()
version = matches.group("version").strip()
if target in result:
oldV = result[target]
if version not in oldV:
oldV.append(version)
result.update({target:oldV})
else:
result.update({target:[version]})
# Dialog sometimes differs from targets' names
if target == "Maemo":
target = "Maemo5"
elif target == "Symbian":
target = "Symbian Device"
implicitTargets = [target]
if target == "Desktop" and platform.system() in ("Linux", "Darwin"):
implicitTargets.append("Embedded Linux")
for currentTarget in implicitTargets:
if currentTarget in result:
oldV = result[currentTarget]
if version not in oldV:
oldV.append(version)
result.update({currentTarget:oldV})
else:
result.update({currentTarget:[version]})
clickButton(waitForObject(":Options.Cancel_QPushButton"))
test.log("Correctly configured targets: %s" % str(result))
return result