Changeset 61416 in vbox for trunk/src/VBox/ValidationKit/testmanager/webui
- Timestamp:
- Jun 2, 2016 3:45:16 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/testmanager/webui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuilogviewer.py
r56295 r61416 149 149 # Got to where we wanted, format the chunk. 150 150 # 151 sHtml = '\n<div class="tmlog">\n<pre>\n';151 asLines = []; 152 152 while True: 153 sHtml += '<a id="L%d" href="#L%d">%05d</a><a id="O%d"></a>%s\n' \154 % (iLine, iLine, iLine, offLine, webutils.escapeElem(sLine.rstrip()));153 asLines.append('<a id="L%d" href="#L%d">%05d</a><a id="O%d"></a>%s\n' \ 154 % (iLine, iLine, iLine, offLine, webutils.escapeElem(sLine.rstrip()))); 155 155 if offCur >= offEnd: 156 156 break; … … 161 161 if len(sLine) == 0: 162 162 break; 163 sHtml += '<pre/></div>\n'; 164 165 return sHtml; 163 return '\n<div class="tmlog">\n<pre>\n' + ''.join(asLines) + '<pre/></div>\n'; 166 164 167 165 -
trunk/src/VBox/ValidationKit/testmanager/webui/wuimain.py
r61286 r61416 971 971 idTestSet = self.getIntParam(self.ksParamLogSetId, iMin = 1); 972 972 idLogFile = self.getIntParam(self.ksParamLogFileId, iMin = 0, iDefault = 0); 973 cbChunk = self.getIntParam(self.ksParamLogChunkSize, iMin = 256, iMax = 16777216, iDefault = 65536);973 cbChunk = self.getIntParam(self.ksParamLogChunkSize, iMin = 256, iMax = 16777216, iDefault = 1024*1024); 974 974 iChunk = self.getIntParam(self.ksParamLogChunkNo, iMin = 0, 975 975 iMax = config.g_kcMbMaxMainLog * 1048576 / cbChunk, iDefault = 0);
Note:
See TracChangeset
for help on using the changeset viewer.