- 時間撮記:
- 2016-7-7 上午10:06:39 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/testdriver/reporter.py
r62099 r62100 290 290 # 291 291 292 def doPollWork(self ):292 def doPollWork(self, sDebug = None): 293 293 """ 294 294 Check if any pending stuff expired and needs doing. 295 295 """ 296 _ = sDebug; 296 297 return None; 297 298 … … 889 890 return False; 890 891 891 def _xmlFlushIfNecessary(self, fPolling = False ):892 def _xmlFlushIfNecessary(self, fPolling = False, sDebug = None): 892 893 """Flushes the XML back log if necessary.""" 893 894 tsNow = utils.timestampSecond(); … … 896 897 if fPolling is not True: 897 898 self._secTsXmlLast = tsNow; 898 self._writeOutput('xml-debug/%s: %s s since flush, %s s since poll '899 % (len(self._asXml), cSecs, cSecsLast, )); # temporarily while debugging flush/poll problem.899 self._writeOutput('xml-debug/%s: %s s since flush, %s s since poll %s' 900 % (len(self._asXml), cSecs, cSecsLast, sDebug if sDebug is not None else '', )); # temporarily 900 901 901 902 # Absolute flush thresholds. … … 941 942 return None; 942 943 943 def doPollWork(self ):944 def doPollWork(self, sDebug = None): 944 945 if len(self._asXml) > 0: 945 946 g_oLock.acquire(); 946 self._xmlFlushIfNecessary(fPolling = True );947 self._xmlFlushIfNecessary(fPolling = True, sDebug = sDebug); 947 948 g_oLock.release(); 948 949 return None; … … 1379 1380 return cErrors; 1380 1381 1381 def doPollWork( ):1382 def doPollWork(sDebug = None): 1382 1383 """ 1383 1384 This can be called from wait loops and similar to make the reporter call 1384 1385 home with pending XML and such. 1385 1386 """ 1386 g_oReporter.doPollWork( );1387 g_oReporter.doPollWork(sDebug); 1387 1388 return None; 1388 1389
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器