Changeset 91107 in vbox for trunk/src/VBox
- Timestamp:
- Sep 3, 2021 3:05:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r91096 r91107 412 412 reporter.log('Using VKAT on guest at \"%s\"' % (sVkatExe)); 413 413 414 asArgs = [ sVkatExe, 'test', '--mode', 'guest', '--probe-backends', \ 415 '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut ]; 414 asArgs = []; 415 416 asArgsVkat = [ sVkatExe, 'test', '--mode', 'guest', '--probe-backends', \ 417 '--tempdir', sPathAudioTemp, '--outdir', sPathAudioOut ]; 418 419 asArgs.extend(asArgsVkat); 416 420 417 421 for _ in range(1, reporter.getVerbosity()): # Verbosity always is initialized at 1. … … 420 424 # Needed for NATed VMs. 421 425 asArgs.extend(['--tcp-connect-addr', '10.0.2.2' ]); 426 427 if oTestVm.isLinux(): ## @todo Might need some more fine tuning later. 428 # 429 # Some Linux distros have a bug / are configured (?) so that processes started by init system 430 # cannot access the PulseAudio server ("Connection refused"), for example OL 8.1. 431 # 432 # To work around this, we use the (hopefully) configured user "vbox" and run it under its behalf, 433 # as the Test Execution Service (TxS) currently does not implement impersonation yet. 434 # 435 sCmd = '/usr/bin/su'; 436 sCmdArgs = ''; 437 for sArg in asArgs: 438 sCmdArgs += sArg + " "; 439 asArgs = [ sCmd, 'vbox', '-c', sCmdArgs ]; 440 else: # Just start it with the same privileges as TxS. 441 sCmd = sVkatExe; 442 443 reporter.log2('startVkatOnGuest: sCmd=%s' % (sCmd,)); 444 reporter.log2('startVkatOnGuest: asArgs=%s' % (asArgs,)); 422 445 423 446 # … … 436 459 # Execute asynchronously on the guest. 437 460 # 438 fRc = oTxsSession.asyncExec(s VkatExe, asArgs, asEnv, cMsTimeout = 15 * 60 * 1000);461 fRc = oTxsSession.asyncExec(sCmd, asArgs, asEnv, cMsTimeout = 15 * 60 * 1000, sPrefix = '[VKAT Guest] '); 439 462 if fRc: 440 463 self.addTask(oTxsSession);
Note:
See TracChangeset
for help on using the changeset viewer.