Squish: Fix error handling

Change-Id: I896ce824a0c75d47f7b123f80937e81793cc33e8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2020-02-06 22:10:26 +01:00
parent e9f2178a4a
commit 11abdb9ddc
3 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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")