Changeset 64946 in vbox
- Timestamp:
- Dec 17, 2016 2:44:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py
r64945 r64946 748 748 len(sVgaText) if sVgaText is not None else 0, 749 749 len(sInfoText) if sInfoText is not None else 0, )); 750 if sVMLog is None:751 sVMLog = '';752 750 753 751 #self.dprint(u'main.log<<<\n%s\n<<<\n' % (sResultLog,)); … … 789 787 fFoundSomething = False; 790 788 for fStopOnHit, tReason, sNeedle in self.katSimpleMainAndVmLogReasons: 791 if sResultLog.find(sNeedle) > 0 or sVMLog.find(sNeedle) > 0:789 if sResultLog.find(sNeedle) > 0 or (sVMLog is not None and sVMLog.find(sNeedle) > 0): 792 790 oCaseFile.noteReasonForId(tReason, oFailedResult.idTestResult); 793 791 if fStopOnHit: … … 826 824 # Check for repeated reboots... 827 825 # 828 cResets = sVMLog.count('Changing the VM state from \'RUNNING\' to \'RESETTING\''); 829 if cResets > 10: 830 return oCaseFile.noteReasonForId(self.ktReason_Unknown_Reboot_Loop, oFailedResult.idTestResult, 831 sComment = 'Counted %s reboots' % (cResets,)); 826 if sVMLog is not None: 827 cResets = sVMLog.count('Changing the VM state from \'RUNNING\' to \'RESETTING\''); 828 if cResets > 10: 829 return oCaseFile.noteReasonForId(self.ktReason_Unknown_Reboot_Loop, oFailedResult.idTestResult, 830 sComment = 'Counted %s reboots' % (cResets,)); 832 831 833 832 return fFoundSomething;
Note:
See TracChangeset
for help on using the changeset viewer.