VirtualBox

Changeset 84821 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Jun 14, 2020 7:12:04 PM (4 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddGuestCtrl: More fixes for VBoxService logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r84805 r84821  
    13541354    def __init__(self, sImgPath = None):
    13551355        self.sImgPath = sImgPath;
    1356         self.sVBoxServiceLogPath = '';
     1356        self.sGstVBoxServiceLogPath = '';
    13571357        self.fNoExit = False;
    13581358
     
    14861486
    14871487        # Upload VBoxService logs on failure.
    1488         if  not fRc \
    1489         and self.oDebug.sVBoxServiceLogPath:
     1488        if  reporter.testErrorCount() > 0 \
     1489        and self.oDebug.sGstVBoxServiceLogPath:
    14901490            sVBoxServiceLogsTarGz    = 'ga-vboxservice-logs-%s.tar.gz' % oTestVm.sVmName;
    1491             sVBoxServiceLogsTarGzAbs = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), sVBoxServiceLogsTarGz);
     1491            sGstVBoxServiceLogsTarGz = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), sVBoxServiceLogsTarGz);
    14921492            if self.oTstDrv.txsPackFile(oSession, oTxsSession, \
    1493                                         sVBoxServiceLogsTarGzAbs, self.oDebug.sVBoxServiceLogPath, fIgnoreErrors = True):
    1494                 self.oTstDrv.txsDownloadFiles(oSession, oTxsSession, [ (sVBoxServiceLogsTarGzAbs, sVBoxServiceLogsTarGz) ], \
     1493                                        sGstVBoxServiceLogsTarGz, self.oDebug.sGstVBoxServiceLogPath, fIgnoreErrors = True):
     1494                self.oTstDrv.txsDownloadFiles(oSession, oTxsSession, [ (sGstVBoxServiceLogsTarGz, sVBoxServiceLogsTarGz) ], \
    14951495                                              fIgnoreErrors = True);
    14961496
     
    16391639        # Enable VBoxService verbose logging.
    16401640        #
    1641         self.oDebug.sVBoxServiceLogPath = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), "VBoxService");
    1642         if oTxsSession.syncMkDirPath(self.oDebug.sVBoxServiceLogPath, 0o777) is not True:
    1643             return reporter.error('Failed to create directory "%s"!' % (self.oDebug.sVBoxServiceLogPath,));
    1644         sPathLogFile = oTestVm.pathJoin(self.oDebug.sVBoxServiceLogPath, 'VBoxService.log');
    1645 
    1646         reporter.log('VBoxService logs will be stored in "%s"' % (self.oDebug.sVBoxServiceLogPath,));
     1641        self.oDebug.sGstVBoxServiceLogPath = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), "VBoxService");
     1642        if oTxsSession.syncMkDirPath(self.oDebug.sGstVBoxServiceLogPath, 0o777) is not True:
     1643            return reporter.error('Failed to create directory "%s"!' % (self.oDebug.sGstVBoxServiceLogPath,));
     1644        sPathLogFile = oTestVm.pathJoin(self.oDebug.sGstVBoxServiceLogPath, 'VBoxService.log');
     1645
     1646        reporter.log('VBoxService logs will be stored in "%s"' % (self.oDebug.sGstVBoxServiceLogPath,));
    16471647
    16481648        if oTestVm.isWindows():
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