VirtualBox

Changeset 103077 in vbox


Ignore:
Timestamp:
Jan 26, 2024 8:40:12 AM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161323
Message:

vsheriff: Taught it about Python bindings installation problems. bugref:10579

File:
1 edited

Legend:

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

    r98655 r103077  
    659659    ktReason_Host_DoubleFreeHeap                       = ( 'Host',              'Double free or corruption' );
    660660    ktReason_Host_LeftoverService                      = ( 'Host',              'Leftover service' );
    661     ktReason_Host_win32com_gen_py                      = ( 'Host',              'win32com.gen_py' );
     661    ktReason_Host_win32com_gen_py_not_found            = ( 'Host',              'win32com.gen_py not found' );
    662662    ktReason_Host_Reboot_OSX_Watchdog_Timeout          = ( 'Host Reboot',       'OSX Watchdog Timeout' );
    663663    ktReason_Host_Modprobe_Failed                      = ( 'Host',              'Modprobe failed' );
    664664    ktReason_Host_NetworkMisconfiguration              = ( 'Host',              'Network misconfiguration' );
     665    ktReason_Host_Python_vboxapi_not_found             = ( 'Host',              'Python API (vboxapi) not found' );
     666    ktReason_Host_Python_xpcom_not_found               = ( 'Host',              'Python API (xpcom) not found' );
    665667    ktReason_Host_TSTInfo_Accuracy_OOR                 = ( 'Host',              'TSTInfo accuracy out of range' );
    666668    ktReason_Host_UninstallationFailed                 = ( 'Host',              'Uninstallation failed' );
     
    11311133    katSimpleMainLogReasons = [
    11321134        # ( Whether to stop on hit, reason tuple, needle text. )
    1133         ( False, ktReason_Host_win32com_gen_py,                     'ModuleNotFoundError: No module named \'win32com.gen_py' ),
    1134 
     1135        ( False, ktReason_Host_win32com_gen_py_not_found,           'ModuleNotFoundError: No module named \'win32com.gen_py' ),
     1136        ( False, ktReason_Host_Python_vboxapi_not_found,            'ImportError: No module named vboxapi' ),
     1137        ( False, ktReason_Host_Python_xpcom_not_found,              'ImportError: No module named xpcom' ),
    11351138    ];
    11361139
     
    16451648
    16461649        #
     1650        # Python bindings installation problem.
     1651        #
     1652        if sMainLog.find('ImportError: No module named vboxapi') > 0:
     1653            oCaseFile.noteReason(self.ktReason_Host_Python_vboxapi_not_found);
     1654            return self.caseClosed(oCaseFile);
     1655
     1656        if sMainLog.find('ImportError: No module named xpcom') > 0:
     1657            oCaseFile.noteReason(self.ktReason_Host_Python_xpcom_not_found);
     1658            return self.caseClosed(oCaseFile);
     1659
     1660        #
    16471661        # Windows python/com screwup.
    16481662        #
    16491663        if sMainLog.find('ModuleNotFoundError: No module named \'win32com.gen_py') > 0:
    1650             oCaseFile.noteReason(self.ktReason_Host_win32com_gen_py);
     1664            oCaseFile.noteReason(self.ktReason_Host_win32com_gen_py_not_found);
    16511665            return self.caseClosed(oCaseFile);
    16521666
Note: See TracChangeset for help on using the changeset viewer.

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