Commit 1b6a3add authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning
Browse files

Squish: Limited number of rows for task file to 100



Change-Id: I05255b3d06cf08fa2e2744105aa88c8510b0f6ef
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent dc0b11db
......@@ -117,7 +117,12 @@ def createTasksFile(list):
outfile = os.path.join(tasksFileDir, os.path.basename(squishinfo.testCase)+"_%d.tasks" % tasksFileCount)
file = codecs.open(outfile, "w", "utf-8")
test.log("Writing tasks file - can take some time (according to number of issues)")
for row in range(model.rowCount()):
rows = model.rowCount()
if os.environ.get("SYSTEST_DEBUG") == "1":
firstrow = 0
else:
firstrow = max(0, rows - 100)
for row in range(firstrow, rows):
index = model.index(row,0)
# the following is currently a bad work-around
fData = index.data(Qt.UserRole).toString() # file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment