forked from qt-creator/qt-creator
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:
committed by
Bill King
parent
f49098683a
commit
3aaa3b3fa4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user