- Timestamp:
- Jul 7, 2016 10:06:39 AM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/testdriver
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/base.py
r62094 r62100 517 517 except: 518 518 pass; 519 reporter.doPollWork( );519 reporter.doPollWork('TdTaskBase.waitForTask'); 520 520 fState = self.pollTask(True); 521 521 … … 1118 1118 cMsSleep = 1000; 1119 1119 fMore = self.waitForTasksSleepWorker(cMsSleep); 1120 reporter.doPollWork( ); # shouldn't be necessary, remove when we figure why...1120 reporter.doPollWork('TestDriverBase.waitForTasks'); # shouldn't be necessary, remove when we figure why... 1121 1121 except KeyboardInterrupt: 1122 1122 self.fInterrupted = True; -
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 -
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r61956 r62100 2289 2289 return -1 2290 2290 2291 reporter.doPollWork( );2291 reporter.doPollWork('vbox.TestDriver.waitOnProgress'); 2292 2292 try: oProgress.waitForCompletion(cMsInterval); 2293 2293 except: return -2; -
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r62094 r62100 223 223 except KeyboardInterrupt: raise; 224 224 except: pass; 225 reporter.doPollWork( );225 reporter.doPollWork('ProgressWrapper.waitForTask'); 226 226 fState = self.pollTask(False); 227 227 return fState; … … 410 410 reporter.errorXcpt(self.sName); 411 411 return -2; 412 reporter.doPollWork( );412 reporter.doPollWork('ProgressWrapper.wait'); 413 413 414 414 try: … … 483 483 reporter.errorXcpt(self.sName); 484 484 return -2; 485 reporter.doPollWork( );485 reporter.doPollWork('ProgressWrapper.waitForOperation'); 486 486 # Not reached. 487 487 … … 677 677 except KeyboardInterrupt: raise; 678 678 except: pass; 679 reporter.doPollWork( );679 reporter.doPollWork('SessionWrapper.waitForTask'); 680 680 fState = self.pollTask(False); 681 681 return fState;
Note:
See TracChangeset
for help on using the changeset viewer.