VirtualBox

Ignore:
Timestamp:
Apr 24, 2023 9:52:39 AM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157018
Message:

Validation Kit/vbox.py: Added txsRunTestStdIn() to provide a simple wrapper method for piping simple string input data to a given guest process [pylint, docs].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r99518 r99520  
    43974397        """
    43984398        assert sStdIn is not None;
    4399         # Wrap sStdIn in a file like class.
    44004399        class StdInWrapper(object): # pylint: disable=too-few-public-methods
     4400            """
     4401            Wraps sStdIn in a file like class.
     4402            """
    44014403            def __init__(self, sStdIn):
    44024404                self.sContent = sStdIn;
     
    44044406
    44054407            def read(self, cbMax):
     4408                """
     4409                Returns next stdin input (up to cbMax), or an empty string if all input has been supplied already.
     4410                """
    44064411                cbLeft = len(self.sContent) - self.off;
    44074412                if cbLeft == 0:
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