儲存庫 vbox 的更動 65978
- 時間撮記:
- 2017-3-7 下午12:18:34 (8 年 以前)
- 位置:
- trunk/src/VBox/ValidationKit/testmanager/batch
- 檔案:
-
- 修改 7 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/testmanager/batch/add_build.py
r62484 r65978 87 87 if self.oConfig.asTargetOsArches is None: asMissing.append('--os-arch'); 88 88 if self.oConfig.asFiles is None: asMissing.append('--file'); 89 if len(asMissing) > 0:89 if asMissing: 90 90 sys.stderr.write('syntax error: Missing: %s\n' % (asMissing,)); 91 91 sys.exit(1); -
trunk/src/VBox/ValidationKit/testmanager/batch/check_for_deleted_builds.py
r62549 r65978 87 87 while True: 88 88 aoBuilds = oBuildLogic.fetchForListing(iStart, cMaxRows, tsNow); 89 if not self.oConfig.fQuiet and len(aoBuilds) > 0:89 if not self.oConfig.fQuiet and aoBuilds: 90 90 print 'Processing builds #%s thru #%s' % (aoBuilds[0].idBuild, aoBuilds[-1].idBuild); 91 91 -
trunk/src/VBox/ValidationKit/testmanager/batch/close_orphaned_testsets.py
r62484 r65978 69 69 oLogic = TestSetLogic(oDb); 70 70 aoOrphans = oLogic.fetchOrphaned(); 71 if len(aoOrphans) > 0:71 if aoOrphans: 72 72 # Complete them. 73 73 if self.oConfig.fJustDoIt: -
trunk/src/VBox/ValidationKit/testmanager/batch/del_build.py
r62484 r65978 56 56 57 57 (oConfig, asArgs) = oParser.parse_args() 58 if len(asArgs) == 0:58 if not asArgs: 59 59 if not oConfig.fQuiet: 60 60 sys.stderr.write('syntax error: No builds binaries specified\n'); -
trunk/src/VBox/ValidationKit/testmanager/batch/regen_sched_queues.py
r62484 r65978 83 83 print ' !!Hit exception processing "%s": %s' % (oGroup.sName, oXcpt,); 84 84 else: 85 if len(aoErrors) == 0:85 if not aoErrors: 86 86 if not self.oConfig.fQuiet: 87 87 print ' Successfully regenerated.'; … … 94 94 else: 95 95 print ' !!%s (%s)' % (oError[0], oError[1]); 96 if len(asMessages) > 0and not self.oConfig.fQuiet:96 if asMessages and not self.oConfig.fQuiet: 97 97 print ' %d messages:' % (len(asMessages),); 98 98 for sMsg in asMessages: -
trunk/src/VBox/ValidationKit/testmanager/batch/vcs_import.py
r62484 r65978 79 79 if self.oConfig.sUrl is None: asMissing.append('--url'); 80 80 if self.oConfig.sRepository is None: asMissing.append('--repository'); 81 if len(asMissing) > 0:81 if asMissing: 82 82 sys.stderr.write('syntax error: Missing: %s\n' % (asMissing,)); 83 83 sys.exit(1); -
trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py
r65863 r65978 181 181 Tries to reads the main log file since this will be the first source of information. 182 182 """ 183 if len(self.sMainLog) > 0:183 if self.sMainLog: 184 184 return self.sMainLog; 185 185 (oFile, oSizeOrError, _) = self.oTestSet.openFile('main.log', 'rb'); … … 292 292 (self.oConfig, _) = oParser.parse_args(); 293 293 294 if self.oConfig.sLogFile is not None and len(self.oConfig.sLogFile) > 0:294 if self.oConfig.sLogFile: 295 295 self.oLogFile = open(self.oConfig.sLogFile, "a"); 296 296 self.oLogFile.write('VirtualTestSheriff: $Revision$ \n'); … … 510 510 # 511 511 dCommentForResultId = oCaseFile.dCommentForResultId; 512 if len(oCaseFile.dReasonForResultId) > 0:512 if oCaseFile.dReasonForResultId: 513 513 # Must weed out ktHarmless. 514 514 dReasonForResultId = {}; … … 516 516 if tReason is not self.ktHarmless: 517 517 dReasonForResultId[idKey] = tReason; 518 if len(dReasonForResultId) == 0:518 if not dReasonForResultId: 519 519 self.vprint(u'TODO: Closing %s without a real reason, only %s.' 520 520 % (oCaseFile.sName, oCaseFile.dReasonForResultId)); … … 532 532 if fSingleReason: 533 533 dReasonForResultId = { oCaseFile.oTestSet.idTestResult: atValues[0], }; 534 if len(dCommentForResultId) > 0:534 if dCommentForResultId: 535 535 dCommentForResultId = { oCaseFile.oTestSet.idTestResult: dCommentForResultId.values()[0], }; 536 536 elif oCaseFile.tReason is not None: … … 588 588 if offEnd < 0: 589 589 return iLine + 1 == len(asFollowingLines) and sStr.find(sLine, off) < 0; 590 if len(sLine) > 0and sStr.find(sLine, off, offEnd) < 0:590 if sLine and sStr.find(sLine, off, offEnd) < 0: 591 591 return False; 592 592 … … 898 898 """ 899 899 self.dprint('investigateLogSet: lengths: result log %u, VM log %u, kernel log %u, vga text %u, info text %u' 900 % ( len(sResultLog ) if sResultLog is not None else 0,901 len(sVMLog ) if sVMLog is not None else 0,902 len(sKrnlLog ) if sKrnlLog is not None else 0,903 len(sVgaText ) if sVgaText is not None else 0,904 len(sInfoText ) if sInfoText is not None else 0, ));900 % ( len(sResultLog if sResultLog else ''), 901 len(sVMLog if sVMLog else ''), 902 len(sKrnlLog if sKrnlLog else ''), 903 len(sVgaText if sVgaText else ''), 904 len(sInfoText if sInfoText else ''), )); 905 905 906 906 #self.dprint(u'main.log<<<\n%s\n<<<\n' % (sResultLog,)); … … 954 954 955 955 # Continue with vga text. 956 if sVgaText is not None and len(sVgaText) > 0:956 if sVgaText: 957 957 for fStopOnHit, tReason, sNeedle in self.katSimpleVgaTextReasons: 958 958 if sVgaText.find(sNeedle) > 0: … … 994 994 995 995 # info.txt. 996 if sInfoText is not None and len(sInfoText) > 0:996 if sInfoText: 997 997 for sNeedle, fnHandler in self.katInfoTextHandlers: 998 998 if sInfoText.find(sNeedle) > 0: … … 1174 1174 return self.caseClosed(oCaseFile); 1175 1175 1176 if len(oCaseFile.dReasonForResultId) > 0:1176 if oCaseFile.dReasonForResultId: 1177 1177 self.vprint(u'TODO: Got %u out of %u - close, but no cigar. :-/' 1178 1178 % (len(oCaseFile.dReasonForResultId), len(aoFailedResults)));
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器