VirtualBox

Changeset 59045 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Dec 7, 2015 8:33:47 PM (9 years ago)
Author:
vboxsync
Message:

Setup audio controller type as recommended for specified OSType. Enabled it only for installation tests.

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

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

    r58889 r59045  
    19081908        return True;
    19091909
     1910    def setupAudio(self, eAudioCtlType):
     1911        """
     1912        Set guest audio controller type and host audio adapter to null
     1913        @param eAudioCtlType device type (vboxcon.AudioControllerType_SB16,
     1914                             vboxcon.AudioControllerType_AC97, vboxcon.AudioControllerType_HDA)
     1915        """
     1916        try:
     1917            oAudioAdapter = self.o.machine.audioAdapter;
     1918
     1919            oAudioAdapter.audioController = eAudioCtlType;
     1920            oAudioAdapter.audioDriver = vboxcon.AudioDriverType_Null;
     1921            # Disable by default
     1922            oAudioAdapter.enabled = False;
     1923        except:
     1924            return reporter.errorXcpt('Unable to set audio adapter.')
     1925
     1926        reporter.log('set audio adapter type to %d' % (eAudioCtlType))
     1927        self.oTstDrv.processPendingEvents();
     1928
     1929        return True
     1930
    19101931    def setupPreferredConfig(self):                                             # pylint: disable=R0914
    19111932        """
     
    19521973                eFirmwareType   = -1;
    19531974                eStorCtlType    = vboxcon.StorageControllerType_PIIX4;
     1975            if self.fpApiVer >= 4.0:
     1976                eAudioCtlType   = oOsType.recommendedAudioController;
    19541977        except:
    19551978            reporter.errorXcpt('exception reading IGuestOSType(%s) attribute' % (sOsTypeId));
     
    19761999            if not self.setStorageControllerType(eStorCtlType, "IDE Controller"):
    19772000                fRc = False;
     2001        if self.fpApiVer >= 4.0:
     2002            if not self.setupAudio(eAudioCtlType): fRc = False;
    19782003
    19792004        return fRc;
  • trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstTest1.py

    r56295 r59045  
    172172                    reporter.log('Set extradata: %s => %s' % (sKey, sValue))
    173173                    fRc = fRc and oSession.setExtraData(sKey, sValue)
     174
     175                # Enable audio adapter
     176                oSession.o.machine.audioAdapter.enabled = True;
    174177
    175178                # Other variations?
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