VirtualBox

Changeset 64946 in vbox


Ignore:
Timestamp:
Dec 17, 2016 2:44:10 AM (8 years ago)
Author:
vboxsync
Message:

vsheriff: check for 'Error opening VBoxDrvStub: STATUS_OBJECT_NAME_NOT_FOUND' in VBoxHardening.log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py

    r64945 r64946  
    748748                            len(sVgaText)   if sVgaText is not None else 0,
    749749                            len(sInfoText)  if sInfoText is not None else 0, ));
    750             if sVMLog is None:
    751                 sVMLog = '';
    752750
    753751            #self.dprint(u'main.log<<<\n%s\n<<<\n' % (sResultLog,));
     
    789787            fFoundSomething = False;
    790788            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):
    792790                    oCaseFile.noteReasonForId(tReason, oFailedResult.idTestResult);
    793791                    if fStopOnHit:
     
    826824            # Check for repeated reboots...
    827825            #
    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,));
    832831
    833832            return fFoundSomething;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette