Squish: Add parentheses around all print statements

Required by Python 3.

Change-Id: Ia28491882a844d3642da38145b1ebfcfbd5883b3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2021-06-25 16:38:03 +02:00
parent c8b176c9a7
commit 770182653c
2 changed files with 4 additions and 3 deletions

View File

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

View File

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