forked from qt-creator/qt-creator
Squish: Adapt verification of kits
Kits are nowadays displayed if configured, but disabled if they do not fit for the respective project. Change-Id: If04a20afde2fc1ada643e45d5eea33e6ace7a4f1 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
committed by
Robert Loehning
parent
3c78d4d74d
commit
99deb21b7a
@@ -391,9 +391,9 @@ def getConfiguredKits():
|
||||
test.log("Configured kits: %s" % str(result))
|
||||
return result
|
||||
|
||||
def visibleCheckBoxExists(text):
|
||||
def enabledCheckBoxExists(text):
|
||||
try:
|
||||
findObject("{type='QCheckBox' text='%s' visible='1'}" % text)
|
||||
waitForObject("{type='QCheckBox' text='%s'}" % text, 100)
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
|
@@ -93,7 +93,7 @@ def main():
|
||||
|
||||
def verifyKitCheckboxes(kits, displayedPlatforms):
|
||||
waitForObject("{type='QLabel' unnamed='1' visible='1' text='Kit Selection'}")
|
||||
availableCheckboxes = frozenset(filter(visibleCheckBoxExists, kits.keys()))
|
||||
availableCheckboxes = frozenset(filter(enabledCheckBoxExists, kits.keys()))
|
||||
# verification whether expected, found and configured match
|
||||
|
||||
expectedShownKits = availableCheckboxes.intersection(displayedPlatforms)
|
||||
|
Reference in New Issue
Block a user