VirtualBox

Ignore:
Timestamp:
May 19, 2017 11:24:07 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115515
Message:

ValidationKit: addLogsToReport() is not available because the session object is not an instance of SessionWrapper(), wrap the session temporarily in order to use the helper for log collection

File:
1 edited

Legend:

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

    r66964 r66971  
    25142514            if rc < 0:
    25152515                self.waitOnDirectSessionClose(oVM, 5000);
    2516                 # VM failed to power up, still collect VBox.log
    2517                 oSession.addLogsToReport();
     2516
     2517                # VM failed to power up, still collect VBox.log, need to wrap the session object
     2518                # in order to use the helper for adding the log files to the report.
     2519                from testdriver.vboxwrappers import SessionWrapper;
     2520                oTmp = SessionWrapper(oSession, oVM, self.oVBox, self.oVBoxMgr, self, True, sName, sLogFile);
     2521                oTmp.addLogsToReport();
    25182522                try:
    25192523                    if oSession is not None:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette