Changeset 85468 in vbox
- Timestamp:
- Jul 27, 2020 12:48:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/autostart/tdAutostart1.py
r85414 r85468 3 3 4 4 """ 5 A Utostart testcase using.5 Autostart testcase using. 6 6 """ 7 from pykickstart.commands import repo 7 8 8 9 __copyright__ = \ … … 380 381 reporter.log2('Reading %s ...' % (sFdNm,)); 381 382 try: 382 abBuf = oProcess. Read(1, 64 * 1024, cMsTimeout);383 abBuf = oProcess.read(iFd, 64 * 1024, cMsTimeout); 383 384 except KeyboardInterrupt: # Not sure how helpful this is, but whatever. 384 385 reporter.error('Process (PID %d) execution interrupted' % (iPid,)); … … 392 393 acbFdOut[iFd] += len(abBuf); 393 394 ## @todo Figure out how to uniform + append! 395 sBuf = ''; 396 if sys.version_info >= (2, 7) and isinstance(abBuf, memoryview): ## @todo Why is this happening? 397 abBuf = abBuf.tobytes(); 398 sBuf = abBuf.decode("utf-8"); 399 else: 400 sBuf = str(abBuf); 394 401 if aBuf: 395 aBuf += s tr(abBuf);402 aBuf += sBuf; 396 403 else: 397 aBuf = s tr(abBuf);404 aBuf = sBuf; 398 405 399 406 ## Process input (todo):
Note:
See TracChangeset
for help on using the changeset viewer.