forked from qt-creator/qt-creator
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:
@@ -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):
|
||||
|
@@ -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)))
|
||||
|
Reference in New Issue
Block a user