From 11abdb9ddc7b278711e1780dab91cbe92dff9915 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 6 Feb 2020 22:10:26 +0100 Subject: Squish: Fix error handling Change-Id: I896ce824a0c75d47f7b123f80937e81793cc33e8 Reviewed-by: Christian Stenger --- tests/system/shared/build_utils.py | 2 +- tests/system/suite_CCOM/tst_CCOM01/test.py | 2 +- tests/system/suite_SCOM/tst_SCOM01/test.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py index 30787224ad..9f2ed42ccb 100644 --- a/tests/system/shared/build_utils.py +++ b/tests/system/shared/build_utils.py @@ -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: diff --git a/tests/system/suite_CCOM/tst_CCOM01/test.py b/tests/system/suite_CCOM/tst_CCOM01/test.py index 516f9fd5b2..6c9101c381 100755 --- a/tests/system/suite_CCOM/tst_CCOM01/test.py +++ b/tests/system/suite_CCOM/tst_CCOM01/test.py @@ -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 diff --git a/tests/system/suite_SCOM/tst_SCOM01/test.py b/tests/system/suite_SCOM/tst_SCOM01/test.py index c02b298e9f..161dcbd361 100644 --- a/tests/system/suite_SCOM/tst_SCOM01/test.py +++ b/tests/system/suite_SCOM/tst_SCOM01/test.py @@ -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") -- cgit v1.2.1