From 0275e0fa6a93f26643d32ae04635499dda047c63 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 30 Jan 2020 13:27:41 +0100 Subject: [PATCH] Squish: Fix handling of enabling Qml Debugging Amends 0168a42b72eaf499927b5bcba2d12aea464c41b7. Change-Id: I71c32a94fa6de4f64d03c9c73681e30496c2560d Reviewed-by: Robert Loehning --- tests/system/shared/build_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py index d0ed67f1725..30787224ad7 100644 --- a/tests/system/shared/build_utils.py +++ b/tests/system/shared/build_utils.py @@ -186,9 +186,9 @@ def verifyBuildConfig(currentTarget, configName, shouldBeDebug=False, enableShad # it will wait here until compilation of the debug libraries has finished. if currentTarget not in (Targets.DESKTOP_4_8_7_DEFAULT, Targets.EMBEDDED_LINUX): qmlDebuggingCombo = findObject(':Qt Creator.QML debugging and profiling:_QComboBox') - selectFromCombo(qmlDebuggingCombo, 'Enable') - # Don't rebuild now - clickButton(waitForObject(":QML Debugging.No_QPushButton", 5000)) + if selectFromCombo(qmlDebuggingCombo, 'Enable'): + # Don't rebuild now + clickButton(waitForObject(":QML Debugging.No_QPushButton", 5000)) try: problemFound = waitForObject("{window=':Qt Creator_Core::Internal::MainWindow' " "type='QLabel' name='problemLabel' visible='1'}", 1000)