Changeset 79445 in vbox
- Timestamp:
- Jul 1, 2019 3:44:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/reporter.py
r79318 r79445 499 499 if iLevel <= self.iVerbose: 500 500 # format it. 501 if self.iDebug > 0: 501 if self.iDebug <= 0: 502 sLogText = '%s %s' % (sTsPrf, sText); 503 elif self.iDebug <= 1: 502 504 sLogText = '%s %30s: %s' % (sTsPrf, sCaller, sText); 503 505 else: 504 sLogText = '%s %s' % (sTsPrf, sText); 505 if self.iDebug > 1: 506 sLogText = 'err=%u %s' % (self.cErrors, sLogText,); 506 sLogText = '%s e=%u %30s: %s' % (sTsPrf, self.cErrors, sCaller, sText); 507 507 508 508 # output it. … … 915 915 def log(self, iLevel, sText, sCaller, sTsPrf): 916 916 if iLevel <= self.iVerbose: 917 if self.iDebug > 0: 917 if self.iDebug <= 0: 918 sLogText = '%s %s' % (sTsPrf, sText); 919 elif self.iDebug <= 1: 918 920 sLogText = '%s %30s: %s' % (sTsPrf, sCaller, sText); 919 921 else: 920 sLogText = '%s %s: %s' % (sTsPrf, self.sName, sText);922 sLogText = '%s e=%u %30s: %s' % (sTsPrf, self.cErrors, sCaller, sText); 921 923 self._writeOutput(sLogText); 922 924 return 0; … … 1148 1150 try: 1149 1151 asInfo = formatExceptionOnly(oType, oValue, sCaller, sTsPrf); 1152 atEntries = traceback.extract_tb(oTraceback); 1153 atEntries.reverse(); 1150 1154 if cFrames is not None and cFrames <= 1: 1151 asInfo = asInfo + traceback.format_tb(oTraceback, 1); 1155 if atEntries: 1156 asInfo = asInfo + traceback.format_list(atEntries[:1]); 1152 1157 else: 1153 asInfo.append('Traceback:') 1154 asInfo = asInfo + traceback.format_tb(oTraceback, cFrames); 1158 asInfo.append('Traceback (stack order):') 1159 if cFrames is not None and cFrames < len(atEntries): 1160 asInfo = asInfo + traceback.format_list(atEntries[:cFrames]); 1161 else: 1162 asInfo = asInfo + traceback.format_list(atEntries); 1155 1163 asInfo.append('Stack:') 1156 1164 asInfo = asInfo + traceback.format_stack(oTraceback.tb_frame.f_back, cFrames);
Note:
See TracChangeset
for help on using the changeset viewer.