From 1b6a3addcd97e8d6d226cb1db812ecb7534ebe2c Mon Sep 17 00:00:00 2001 From: Robert Loehning <robert.loehning@nokia.com> Date: Fri, 3 Feb 2012 14:19:01 +0100 Subject: [PATCH] Squish: Limited number of rows for task file to 100 Change-Id: I05255b3d06cf08fa2e2744105aa88c8510b0f6ef Reviewed-by: Christian Stenger <christian.stenger@nokia.com> --- tests/system/shared/build_utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py index c371e9df1ee..44970382032 100644 --- a/tests/system/shared/build_utils.py +++ b/tests/system/shared/build_utils.py @@ -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 -- GitLab