From 770182653c897ff3d656bfcdd35fbff1d2b1de8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Fri, 25 Jun 2021 16:38:03 +0200 Subject: [PATCH] Squish: Add parentheses around all print statements Required by Python 3. Change-Id: Ia28491882a844d3642da38145b1ebfcfbd5883b3 Reviewed-by: Christian Stenger --- tests/system/shared/qtcreator.py | 5 +++-- tests/system/shared/utils.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/system/shared/qtcreator.py b/tests/system/shared/qtcreator.py index d78da01d925..0419a4c7589 100644 --- a/tests/system/shared/qtcreator.py +++ b/tests/system/shared/qtcreator.py @@ -144,9 +144,10 @@ def checkForStillRunningQmlExecutable(possibleNames): continue else: if subprocess.call(["taskkill", "/F", "/FI", "IMAGENAME eq %s" % qmlHelper]) == 0: - print "Killed still running %s" % qmlHelper + print("Killed still running %s" % qmlHelper) else: - print "%s is still running - failed to kill it" % qmlHelper + print("%s is still running - failed to kill it" % qmlHelper) + def __removeTestingDir__(): def __removeIt__(directory): diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index e31ed30c200..c34e39af7b8 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -579,7 +579,7 @@ def dumpChildren(item): def writeTestResults(folder): if not os.path.exists(folder): - print "Skipping writing test results (folder '%s' does not exist)." % folder + print("Skipping writing test results (folder '%s' does not exist)." % folder) return resultFile = open("%s.srf" % os.path.join(folder, os.path.basename(squishinfo.testCase)), "w") resultFile.write("suite:%s\n" % os.path.basename(os.path.dirname(squishinfo.testCase)))