VirtualBox

Changeset 98962 in vbox


Ignore:
Timestamp:
Mar 14, 2023 1:57:46 PM (23 months ago)
Author:
vboxsync
Message:

ValidationKit/testdriver/vbox.py: VMMR0.r0 might not be present on macOS, especially on arm64. Hopefully fixes detecting the VBox installation on the testbox, bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r98655 r98962  
    488488
    489489            # Do some checks.
    490             sVMMR0 = os.path.join(self.sInstallPath, 'VMMR0.r0');
    491             if not os.path.isfile(sVMMR0) and utils.getHostOs() == 'solaris': # solaris is special.
    492                 sVMMR0 = os.path.join(self.sInstallPath, 'amd64' if utils.getHostArch() == 'amd64' else 'i386', 'VMMR0.r0');
    493             if not os.path.isfile(sVMMR0):
    494                 raise base.GenError('%s is missing' % (sVMMR0,));
     490            if utils.getHostOs() != 'darwin': # On macOS VMMR0.r0 might not be present anymore, especially on arm64.
     491                sVMMR0 = os.path.join(self.sInstallPath, 'VMMR0.r0');
     492                if not os.path.isfile(sVMMR0) and utils.getHostOs() == 'solaris': # solaris is special.
     493                    sVMMR0 = os.path.join(self.sInstallPath, 'amd64' if utils.getHostArch() == 'amd64' else 'i386', 'VMMR0.r0');
     494                if not os.path.isfile(sVMMR0):
     495                    raise base.GenError('%s is missing' % (sVMMR0,));
    495496
    496497        # Guest additions location is different on windows for some _stupid_ reason.
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