VirtualBox

Ignore:
Timestamp:
Feb 15, 2022 9:32:45 PM (3 years ago)
Author:
vboxsync
Message:

vsheriff: Shorten GA failure reasons and adjust detection.

File:
1 edited

Legend:

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

    r93714 r93763  
    610610    ## @{
    611611
    612     ktReason_Add_Installer_Win_Failed                  = ( 'Additions',         'Installer (Windows) failed' );
    613     ktReason_Add_ShFl_Automount                        = ( 'Additions',         'Shared Folders: Automounting' );
    614     ktReason_Add_ShFl_FsPerf                           = ( 'Additions',         'Shared Folders: Runnings FsPerf' );
    615     ktReason_Add_GstCtl_Preparations                   = ( 'Additions',         'Guest Control: Preparations' );
    616     ktReason_Add_GstCtl_SessionBasics                  = ( 'Additions',         'Guest Control: Session basics' );
    617     ktReason_Add_GstCtl_SessionProcRefs                = ( 'Additions',         'Guest Control: Session process references' );
    618     ktReason_Add_GstCtl_CopyFromGuest_Timeout          = ( 'Additions',         'Guest Control: Copy from guest timeout' );
    619     ktReason_Add_GstCtl_CopyToGuest_Timeout            = ( 'Additions',         'Guest Control: Copy to guest timeout' );
    620     ktReason_Add_GstCtl_Session_Reboot                 = ( 'Additions',         'Guest Control: Session w/ reboot' );
     612    ktReason_Add_Installer_Win_Failed                  = ( 'Additions',         'Win GA install' );
     613    ktReason_Add_ShFl_Automount                        = ( 'Additions',         'Automounting' );
     614    ktReason_Add_ShFl_FsPerf                           = ( 'Additions',         'FsPerf' );
     615    ktReason_Add_GstCtl_Preparations                   = ( 'Additions',         'GstCtl preparations' );
     616    ktReason_Add_GstCtl_SessionBasics                  = ( 'Additions',         'Session basics' );
     617    ktReason_Add_GstCtl_SessionProcRefs                = ( 'Additions',         'Session process' );
     618    ktReason_Add_GstCtl_Session_Reboot                 = ( 'Additions',         'Session reboot' );
     619    ktReason_Add_GstCtl_CopyFromGuest_Timeout          = ( 'Additions',         'CopyFromGuest timeout' );
     620    ktReason_Add_GstCtl_CopyToGuest_Timeout            = ( 'Additions',         'CopyToGuest timeout' );
    621621    ktReason_Add_FlushViewOfFile                       = ( 'Additions',         'FlushViewOfFile' );
    622622    ktReason_Add_Mmap_Coherency                        = ( 'Additions',         'mmap coherency' );
     
    11931193        if oFailedResult.sName == 'VBoxWindowsAdditions.exe' >= 0:
    11941194            enmReason = self.ktReason_Add_Installer_Win_Failed;
    1195         elif oFailedResult.sName == 'Automounting' >= 0:
    1196             if sResultLog.find('Shared Folders') >= 0:
    1197                 enmReason = self.ktReason_Add_ShFl_Automount;
    1198         elif oFailedResult.sName == 'Running FsPerf' >= 0:
    1199             if sResultLog.find('Shared Folders') >= 0:
    1200                 enmReason = self.ktReason_Add_ShFl_FsPerf;
    1201         elif oFailedResult.sName == 'Preparations' >= 0:
    1202             if sResultLog.find('Guest Control') >= 0:
    1203                 enmReason = self.ktReason_Add_GstCtl_Preparations;
     1195        # guest control:
     1196        elif oFailedResult.sName == 'Preparations' >= 0 \
     1197         and oFailedResult.oParent and oFailedResult.oParent.sName == 'Guest Control':
     1198            enmReason = self.ktReason_Add_GstCtl_Preparations;
    12041199        elif oFailedResult.sName == 'Session Basics':
    12051200            enmReason = self.ktReason_Add_GstCtl_SessionBasics;
     
    12141209        elif oFailedResult.sName.find('Session w/ Guest Reboot') >= 0:
    12151210            enmReason = self.ktReason_Add_GstCtl_Session_Reboot;
     1211        # shared folders:
     1212        elif oFailedResult.sName == 'Automounting' >= 0 \
     1213         and oFailedResult.oParent and oFailedResult.oParent.sName == 'Shared Folders':
     1214            enmReason = self.ktReason_Add_ShFl_Automount;
    12161215        elif oFailedResult.sName == 'mmap':
    12171216            if sResultLog.find('FsPerf: Flush issue at offset ') >= 0:
     
    12191218            elif sResultLog.find('FlushViewOfFile') >= 0:
    12201219                enmReason = self.ktReason_Add_FlushViewOfFile;
     1220        elif oFailedResult.sName == 'Running FsPerf' >= 0 \
     1221         and oFailedResult.oParent and oFailedResult.oParent.sName == 'Shared Folders':
     1222            enmReason = self.ktReason_Add_ShFl_FsPerf;  ## Maybe it would be better to be more specific...
    12211223
    12221224        if enmReason is not None:
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