vbox的更動 61953 路徑 trunk/src/VBox/ValidationKit
- 時間撮記:
- 2016-6-30 上午10:38:53 (8 年 以前)
- 位置:
- trunk/src/VBox/ValidationKit/testdriver
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/testdriver/base.py
r61832 r61953 514 514 cMsWait = 1000; 515 515 try: 516 self.oCv.wait(cMsWait / 1000 )516 self.oCv.wait(cMsWait / 1000.0); 517 517 except: 518 518 pass; 519 reporter.doPollWork(); 519 520 fState = self.pollTask(True); 520 521 -
trunk/src/VBox/ValidationKit/testdriver/reporter.py
r61833 r61953 285 285 self.testDone(False, sCaller); 286 286 return False; 287 288 # 289 # Misc. 290 # 291 292 def doPollWork(self): 293 """ 294 Check if any pending stuff expired and needs doing. 295 """ 296 return None; 297 287 298 288 299 … … 925 936 return None; 926 937 938 def doPollWork(self): 939 if len(self._asXml) > 0: 940 g_oLock.acquire(); 941 self._xmlFlushIfNecessary(); 942 g_oLock.release(); 943 return None; 944 927 945 928 946 # … … 1356 1374 return cErrors; 1357 1375 1376 def doPollWork(): 1377 """ 1378 This can be called from wait loops and similar to make the reporter call 1379 home with pending XML and such. 1380 """ 1381 g_oReporter.doPollWork(); 1382 return None; 1383 1358 1384 1359 1385 # -
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r61952 r61953 2289 2289 return -1 2290 2290 2291 reporter.doPollWork(); 2291 2292 try: oProgress.waitForCompletion(cMsInterval); 2292 2293 except: return -2; -
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r61951 r61953 223 223 except KeyboardInterrupt: raise; 224 224 except: pass; 225 reporter.doPollWork(); 225 226 fState = self.pollTask(False); 226 227 return fState; … … 409 410 reporter.errorXcpt(self.sName); 410 411 return -2; 412 reporter.doPollWork(); 411 413 412 414 try: … … 481 483 reporter.errorXcpt(self.sName); 482 484 return -2; 485 reporter.doPollWork(); 483 486 # Not reached. 484 487 … … 668 671 if cMsElapsed > cMsTimeout: 669 672 break; 670 try: self.oVBoxMgr.waitForEvents( cMsTimeout - cMsElapsed);673 try: self.oVBoxMgr.waitForEvents(min(cMsTimeout - cMsElapsed, 10000)); 671 674 except KeyboardInterrupt: raise; 672 675 except: pass; 676 reporter.doPollWork(); 673 677 fState = self.pollTask(False); 674 678 return fState;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器