Changeset 91428 in vbox for trunk/src/VBox
- Timestamp:
- Sep 28, 2021 9:23:40 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r91426 r91428 39 39 import signal 40 40 import subprocess 41 import time42 41 43 42 # Only the main script needs to modify the path. … … 271 270 oProcess = utils.sudoProcessPopen(asArgs, 272 271 env = asEnvTmp, 273 stdout = s ubprocess.PIPE, stderr = subprocess.PIPE, shell = False,272 stdout = sys.stdout, stderr = sys.stdout, 274 273 close_fds = False); 275 274 else: 276 275 oProcess = utils.processPopenSafe(asArgs, 277 276 env = asEnvTmp, 278 stdout = s ubprocess.PIPE, stderr = subprocess.PIPE);277 stdout = sys.stdout, stderr = sys.stdout); 279 278 if oProcess: 280 for line in iter(oProcess.stdout.readline, b''):281 reporter.log('[' + sWhat + '] ' + line.decode('utf-8'));282 self.processPendingEvents();283 time.sleep(0.01); # Don't hog the CPU too much. 284 oProcess.communicate();285 if oProcess.returncode == 0:279 self.pidFileAdd(oProcess.pid, sWhat, fSudo = fAsAdmin); 280 iRc = oProcess.wait(); 281 self.pidFileRemove(oProcess.pid); 282 283 if iRc == 0: 284 reporter.log('*** %s: exit code %d' % (sWhat, iRc)); 286 285 fRc = True; 287 286 else: 288 reporter.log 2('Executing \"%s\" on host returned exit code error %d' % (sWhat, oProcess.returncode));287 reporter.log('!*! %s: exit code %d' % (sWhat, iRc)); 289 288 290 289 return fRc; … … 302 301 303 302 reporter.testStart(sWhat); 303 304 try: sys.stdout.flush(); 305 except: pass; 306 try: sys.stderr.flush(); 307 except: pass; 304 308 305 309 fRc = self.executeHstLoop(sWhat, asArgs, asEnv);
Note:
See TracChangeset
for help on using the changeset viewer.