VirtualBox

Changeset 67388 in vbox


Ignore:
Timestamp:
Jun 14, 2017 10:48:41 AM (8 years ago)
Author:
vboxsync
Message:

ValidationKit/tests/storage: Always log stdout and stderr when the execution fails

File:
1 edited

Legend:

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

    r65963 r67388  
    148148        sOutput = None;
    149149        if self.oTxsSession is not None:
     150            reporter.log('Executing [remote]: %s %s %s' % (sExec, asArgs, sInput));
     151            reporter.flushall();
    150152            oStdOut = StdInOutBuffer();
    151153            oStdErr = StdInOutBuffer();
     
    160162            sOutput = oStdOut.getOutput();
    161163            sError = oStdErr.getOutput();
     164            if fRc is False:
     165                reporter.log('Exit code [remote]: %s (stdout: %s stderr: %s)' % (fRc, sOutput, sError));
     166            else
     167                reporter.log('Exit code [remote]: %s' % (fRc,));
    162168        else:
    163169            fRc, sOutput, sError = self._sudoExecuteSync([sExec, ] + list(asArgs), sInput);
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