Changeset 59045 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Dec 7, 2015 8:33:47 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r58889 r59045 1908 1908 return True; 1909 1909 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 1910 1931 def setupPreferredConfig(self): # pylint: disable=R0914 1911 1932 """ … … 1952 1973 eFirmwareType = -1; 1953 1974 eStorCtlType = vboxcon.StorageControllerType_PIIX4; 1975 if self.fpApiVer >= 4.0: 1976 eAudioCtlType = oOsType.recommendedAudioController; 1954 1977 except: 1955 1978 reporter.errorXcpt('exception reading IGuestOSType(%s) attribute' % (sOsTypeId)); … … 1976 1999 if not self.setStorageControllerType(eStorCtlType, "IDE Controller"): 1977 2000 fRc = False; 2001 if self.fpApiVer >= 4.0: 2002 if not self.setupAudio(eAudioCtlType): fRc = False; 1978 2003 1979 2004 return fRc; -
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstTest1.py
r56295 r59045 172 172 reporter.log('Set extradata: %s => %s' % (sKey, sValue)) 173 173 fRc = fRc and oSession.setExtraData(sKey, sValue) 174 175 # Enable audio adapter 176 oSession.o.machine.audioAdapter.enabled = True; 174 177 175 178 # Other variations?
Note:
See TracChangeset
for help on using the changeset viewer.