VirtualBox

Changeset 84202 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 8, 2020 10:56:27 AM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddGuestCtrl: Convert memoryview instance of std[out|err] output to a bytes array first before printing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r84197 r84202  
    22572257                                        reporter.log2('Process (PID %d) got %d bytes of %s data (type: %s)'
    22582258                                                      % (iPid, len(abBuf), sFdNm, type(abBuf)));
     2259                                        if isinstance(memoryview) is abBuf: ## @todo Why is this happening?
     2260                                            abBuf = abBuf.tobytes();
    22592261                                        for sLine in abBuf.decode("utf-8").splitlines():
    22602262                                            reporter.log('%s: %s' % (sFdNm, sLine));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette