Commit 66a1b52f authored by Robert Loehning's avatar Robert Loehning

Squish: Stabilize progressBarWait()

Change-Id: I9511317f8389963e5c98230d6885311a84c2dc25
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 648403d4
...@@ -643,7 +643,9 @@ def checkIfObjectExists(name, shouldExist = True, timeout = 3000, verboseOnFail ...@@ -643,7 +643,9 @@ def checkIfObjectExists(name, shouldExist = True, timeout = 3000, verboseOnFail
# wait for progress bar(s) to appear and disappear # wait for progress bar(s) to appear and disappear
def progressBarWait(timeout=60000): def progressBarWait(timeout=60000):
checkIfObjectExists(":Qt Creator_Core::Internal::ProgressBar", True, 2000) if not checkIfObjectExists(":Qt Creator_Core::Internal::ProgressBar", True, 6000):
test.warning("progressBarWait() timed out when waiting for ProgressBar.",
"This may lead to unforeseen behavior. Consider increasing the timeout.")
checkIfObjectExists(":Qt Creator_Core::Internal::ProgressBar", False, timeout) checkIfObjectExists(":Qt Creator_Core::Internal::ProgressBar", False, timeout)
def readFile(filename): def readFile(filename):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment