VirtualBox

Changeset 103335 in vbox for trunk


Ignore:
Timestamp:
Feb 13, 2024 2:04:41 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161642
Message:

Validation Kit/storage: Added optional output of failed (guest/host) processes via remoteexecutor if verbose logging in the testdriver is enabled.

File:
1 edited

Legend:

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

    r98103 r103335  
    199199        if sBinary is not None:
    200200            fRc, sOutput, sError = self._execLocallyOrThroughTxs(sBinary, asArgs, sInput, cMsTimeout);
     201            # If verbose logging is enabled and the process failed for whatever reason, log its output to the reporter.
     202            if  not fRc \
     203            and reporter.getVerbosity() >= 2: # Verbose logging starts at level 2.
     204                asOutput = sOutput.splitlines();
     205                for sLine in asOutput:
     206                    reporter.log('%s: %s' % (sExec, sLine.encode(encoding = 'UTF-8', errors = 'strict'),));
    201207        else:
    202208            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