aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2021-10-29 13:51:35 +0200
committerRobert Löhning <robert.loehning@qt.io>2021-11-01 12:39:32 +0000
commit91f4559720fd388b37a5180a466b1125cf5b7969 (patch)
tree0a1f377295f85e08070f6616fb886e7f0a5f6996 /tests
parent662135bc075c47e4ef495d32f21e6a5d4709ccf9 (diff)
Squish: Don't wait for nothing in tst_simple_debug
Change-Id: I74bb40b03fa13568571f4009618c523bf9c13c63 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/suite_debugger/tst_simple_debug/test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/system/suite_debugger/tst_simple_debug/test.py b/tests/system/suite_debugger/tst_simple_debug/test.py
index 9468ac4f8a..7237e00aae 100644
--- a/tests/system/suite_debugger/tst_simple_debug/test.py
+++ b/tests/system/suite_debugger/tst_simple_debug/test.py
@@ -51,8 +51,9 @@ def main():
expectedBreakpointsOrder = setBreakpointsForCurrentProject(filesAndLines)
if expectedBreakpointsOrder:
availableConfigs = iterateBuildConfigs("Debug")
- progressBarWait()
- if not availableConfigs:
+ if len(availableConfigs) > 1: # having just one config means no change, no progress bar
+ progressBarWait()
+ elif len(availableConfigs) == 0:
test.fatal("Haven't found a suitable Qt version - leaving without debugging.")
for kit, config in availableConfigs:
test.log("Selecting '%s' as build config" % config)