diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py index c371e9df1ee4316bb4f8c267da6af5988081b4bb..44970382032bf72732b4310931accc496a15471b 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