VirtualBox

Changeset 103455 in vbox


Ignore:
Timestamp:
Feb 19, 2024 3:46:14 PM (9 months ago)
Author:
vboxsync
Message:

Validation Kit/tdAudioTest: More bugfixes for the testboxes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r103391 r103455  
    331331
    332332            while True if sys.version_info[0] < 3 else oProcess.stdout.readable(): # pylint: disable=no-member
    333                 sStdOut = oProcess.stdout.readline();
    334                 if sStdOut:
    335                     sStdOut = sStdOut.strip();
    336                     reporter.log('%s [stdout]: %s' % (sWhat, sStdOut.rstrip('\n'),));
     333                try:
     334                    sStdOut = oProcess.stdout.readline();
     335                    if  sStdOut \
     336                    and isinstance(sStdOut, str):
     337                        sStdOut = sStdOut.strip();
     338                        reporter.log('%s [stdout]: %s' % (sWhat, sStdOut.rstrip('\n'),));
     339                except:
     340                    reporter.log('%s [stdout]: <Unable to read output>' % (sWhat,));
    337341                self.processEvents(0);
    338342                iRc = oProcess.poll();
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