VirtualBox

Ignore:
Timestamp:
Feb 13, 2024 3:55:27 PM (11 months ago)
Author:
vboxsync
Message:

Validation Kit/storage: Added optional output of failed (guest/host) processes via remoteexecutor if verbose logging in the testdriver is enabled; also log stderr + always log if verbosity >= 3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py

    r103335 r103337  
    200200            fRc, sOutput, sError = self._execLocallyOrThroughTxs(sBinary, asArgs, sInput, cMsTimeout);
    201201            # If verbose logging is enabled and the process failed for whatever reason, log its output to the reporter.
     202            fLog = False;
    202203            if  not fRc \
    203204            and reporter.getVerbosity() >= 2: # Verbose logging starts at level 2.
     205                fLog = True;
     206            elif reporter.getVerbosity() >= 3:
     207                fLog = True;
     208
     209            if fLog:
    204210                asOutput = sOutput.splitlines();
    205211                for sLine in asOutput:
    206                     reporter.log('%s: %s' % (sExec, sLine.encode(encoding = 'UTF-8', errors = 'strict'),));
     212                    reporter.log('%s [stdout]: %s' % (sExec, sLine.encode(encoding = 'UTF-8', errors = 'strict'),));
     213                asError = sError.splitlines();
     214                for sLine in asError:
     215                    reporter.log('%s [stderr]: %s' % (sExec, sLine.encode(encoding = 'UTF-8', errors = 'strict'),));
    207216        else:
    208217            fRc = False;
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