forked from qt-creator/qt-creator
Squish: Fix error handling
Change-Id: I896ce824a0c75d47f7b123f80937e81793cc33e8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -57,7 +57,7 @@ def checkCompile():
|
||||
waitFor("len(str(output.plainText))>0",5000)
|
||||
if compileSucceeded(output.plainText):
|
||||
if os.getenv("SYSTEST_DEBUG") == "1":
|
||||
test.log("Compile Output:\n%s" % output.plainText)
|
||||
test.log("Compile Output:\n%s" % str(output.plainText))
|
||||
test.passes("Compile successful")
|
||||
return True
|
||||
else:
|
||||
|
@@ -58,7 +58,7 @@ def main():
|
||||
compileOutput = waitForObject(":Qt Creator.Compile Output_Core::OutputWindow")
|
||||
if not test.verify(compileSucceeded(compileOutput.plainText),
|
||||
"Verifying building of existing complex qt application."):
|
||||
test.log(compileOutput.plainText)
|
||||
test.log(str(compileOutput.plainText))
|
||||
# exit
|
||||
invokeMenuItem("File", "Exit")
|
||||
# no cleanup needed, as whole testing directory gets properly removed after test finished
|
||||
|
@@ -50,6 +50,6 @@ def main():
|
||||
compileOutput = waitForObject(":Qt Creator.Compile Output_Core::OutputWindow")
|
||||
if not test.verify(compileSucceeded(compileOutput.plainText),
|
||||
"Verifying building of simple qt quick application."):
|
||||
test.log(compileOutput.plainText)
|
||||
test.log(str(compileOutput.plainText))
|
||||
# exit qt creator
|
||||
invokeMenuItem("File", "Exit")
|
||||
|
Reference in New Issue
Block a user