forked from qt-creator/qt-creator
Squish: Build Qml debug lib only if necessary
Change-Id: I90cf1f9e57d39211ea151b1cfc52e27f4ecaf654 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -204,6 +204,7 @@ def verifyBuildConfig(targetCount, currentTarget, shouldBeDebug=False, enableSha
|
||||
test.compare(buildCfCombo.currentText, 'Debug', "Verifying whether it's a debug build")
|
||||
else:
|
||||
test.compare(buildCfCombo.currentText, 'Release', "Verifying whether it's a release build")
|
||||
if enableQmlDebug:
|
||||
try:
|
||||
libLabel = waitForObject(":scrollArea.Library not available_QLabel", 2000)
|
||||
mouseClick(libLabel, libLabel.width - 10, libLabel.height / 2, 0, Qt.LeftButton)
|
||||
@@ -223,6 +224,13 @@ def verifyBuildConfig(targetCount, currentTarget, shouldBeDebug=False, enableSha
|
||||
test.warning('%s' % problemFound.text)
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
qmlDebugCheckbox = findObject(":scrollArea.qmlDebuggingLibraryCheckBox_QCheckBox")
|
||||
if qmlDebugCheckbox.enabled and qmlDebugCheckbox.checked:
|
||||
test.log("Qml debugging libraries are available - unchecking qml debugging.")
|
||||
clickButton(qmlDebugCheckbox)
|
||||
# Don't rebuild now
|
||||
clickButton(waitForObject(":QML Debugging.No_QPushButton", 5000))
|
||||
clickButton(waitForObject(":scrollArea.Details_Utils::DetailsButton"))
|
||||
switchViewTo(ViewConstants.EDIT)
|
||||
|
||||
|
Reference in New Issue
Block a user