Skip to content
Snippets Groups Projects
Commit 46320d64 authored by Christian Stenger's avatar Christian Stenger Committed by Bill King
Browse files

Improved writing tasks files

Change-Id: Ia7dfa0c4554082e8620cfbed40e3f105fb8ff2e1
Reviewed-on: http://codereview.qt.nokia.com/4205


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarBill King <bill.king@nokia.com>
parent 9447f903
No related branches found
No related tags found
No related merge requests found
......@@ -126,8 +126,15 @@ def createTasksFile(list):
global tasksFileDir, tasksFileCount
model = list.model()
if tasksFileDir == None:
tasksFileDir = tempDir()
appCtxt = currentApplicationContext()
tasksFileDir = os.getcwd() + "/tasks"
tasksFileDir = os.path.abspath(tasksFileDir)
if not os.path.exists(tasksFileDir):
try:
os.makedirs(tasksFileDir)
except OSError:
test.log("Could not create %s - falling back to a temporary directory" % tasksFileDir)
tasksFileDir = tempDir()
tasksFileCount += 1
outfile = os.path.join(tasksFileDir, os.path.basename(squishinfo.testCase)+"_%d.tasks" % tasksFileCount)
file = codecs.open(outfile, "w", "utf-8")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment