Changeset 90777 in vbox for trunk/src/VBox/ValidationKit/tests/audio
- Timestamp:
- Aug 23, 2021 8:22:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r90772 r90777 352 352 return fRc; 353 353 354 def setGstAudioBackend(self, oTestVm, asArgs):355 """356 Guesses guest OS, uses an alternative (non-default) audio backends if necessary357 and appends it to the given arguments sequence.358 359 Returns the altered arguments sequence.360 """361 asArgsRet = asArgs;362 363 # Note: Also works with the 64-bit variants (if any).364 sOsType = oTestVm.getNonCanonicalGuestOsType();365 if "Windows2000" in sOsType \366 or "WindowsXP" in sOsType \367 or "Windows2003" in sOsType \368 or "Windows7" in sOsType:369 ## @todo Some more here?370 asArgsRet.extend( [ '--backend', 'directsound' ]);371 372 ## @todo Tweak old(er) Linux'es as well to use OSS instead of PulseAudio?373 return asArgsRet;374 375 354 def disableHstFirewall(self): 376 355 """ … … 426 405 reporter.log('Using VKAT on guest at \"%s\"' % (sVkatExe)); 427 406 428 asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'guest', \407 asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'guest', '--probe-backends', \ 429 408 '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut ]; 430 431 # Guess the guest backend and apply the new arguments (if any).432 asArgs = self.setGstAudioBackend(oTestVm, asArgs);433 409 434 410 # … … 479 455 480 456 # Build the base command line, exclude all tests by default. 481 asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'host', '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut, '-a' ]; 457 asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'host', '--probe-backends' \ 458 '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut, '-a' ]; 482 459 483 460 # ... and extend it with wanted tests.
Note:
See TracChangeset
for help on using the changeset viewer.