Commit 2d6842e6 authored by Christian Stenger's avatar Christian Stenger
Browse files

Improved build handling when build fails without errors inside build issues

Change-Id: I0958a9a8e644c245fb0930f5d165e0aac4a74ce8

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarBill King <>
parent 7378ce32
......@@ -92,7 +92,27 @@ def checkLastBuild(expectedToFail=False):
def handleBuildFinished(object, success):
global buildFinished, buildSucceeded
buildFinished = True
buildSucceeded = checkLastBuild()
if success:
buildSucceeded = checkLastBuild()
test.fatal("Build failed")
buildSucceeded = success
# helper function to check the compilation when build wasn't successful
def checkCompile():
toggleCompOutput = waitForObject("{type='Core::Internal::OutputPaneToggleButton' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow' occurrence='4'}", 20000)
if not toggleCompOutput.checked:
output = waitForObject("{type='Core::OutputWindow' unnamed='1' visible='1' windowTitle='Compile Output'"
" window=':Qt Creator_Core::Internal::MainWindow'}", 20000)
if str(output.plainText).lower().find("error")==-1:
test.log("Compile Output:\n%s" % output.plainText)
test.fatal("Compile Output:\n%s" % output.plainText)
# after starting to build an application this function can be used to synchronize the following tests
# make sure to set global variable buildFinished to False before starting to build
Supports Markdown
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