Changeset 90987 in vbox
- Timestamp:
- Aug 30, 2021 7:29:07 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r90986 r90987 216 216 return (False, ""); 217 217 218 def executeHstLoop(self, sWhat, asArgs, fAsAdmin = False):218 def executeHstLoop(self, sWhat, asArgs, asEnv = None, fAsAdmin = False): 219 219 """ 220 220 Inner loop which handles the execution of a host binary. 221 221 """ 222 222 fRc = False; 223 224 asEnvTmp = os.environ.copy(); 225 if asEnv: 226 asEnvTmp = asEnvTmp + asEnv; 223 227 224 228 if fAsAdmin \ 225 229 and utils.getHostOs() != 'win': 226 230 oProcess = utils.sudoProcessPopen(asArgs, 231 env = asEnvTmp, 227 232 stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = False, 228 233 close_fds = False); 229 234 else: 230 235 oProcess = utils.processPopenSafe(asArgs, 236 env = asEnvTmp, 231 237 stdout = subprocess.PIPE, stderr = subprocess.PIPE); 232 238 if oProcess: … … 246 252 return fRc; 247 253 248 def executeHst(self, sWhat, asArgs, fAsync = False, fAsAdmin = False):254 def executeHst(self, sWhat, asArgs, asEnv = None, fAsync = False, fAsAdmin = False): 249 255 """ 250 256 Runs a binary (image) with optional admin (root) rights on the host and … … 259 265 reporter.testStart(sWhat); 260 266 261 fRc = self.executeHstLoop(sWhat, asArgs );267 fRc = self.executeHstLoop(sWhat, asArgs, asEnv); 262 268 if fRc: 263 269 reporter.error('Executing \"%s\" on host done' % (sWhat,)); … … 462 468 reporter.log('Using VKAT on host at: \"%s\"' % (sVkatExe)); 463 469 470 # Enable more verbose logging for all groups. Disable later again? 471 asEnv = {}; 472 asEnv[ 'VKAT_RELEASE_LOG' ] = 'all.e.l.l2.l3.f'; 473 464 474 # Build the base command line, exclude all tests by default. 465 475 asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'host', '--probe-backends', \ … … 472 482 # Let VKAT on the host run synchronously. 473 483 # 474 fRc = self.executeHst("VKAT Host", asArgs );484 fRc = self.executeHst("VKAT Host", asArgs, asEnv); 475 485 476 486 reporter.testDone();
Note:
See TracChangeset
for help on using the changeset viewer.