VirtualBox

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


Ignore:
Timestamp:
Apr 18, 2020 1:16:17 PM (5 years ago)
Author:
vboxsync
Message:

ValKit/tdAddGuestCtrl.py: Use oTestVm.pathJoin instead of whatever r137254 was doing. The method has been there fore 10 months or so...

File:
1 edited

Legend:

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

    r83736 r83793  
    16171617                return reporter.error('Failed to create directory "%s"!' % (sDir,));
    16181618
    1619         if oTestVm.isWindows():
    1620             sGuestSlash = '\\';
    1621         else:
    1622             sGuestSlash = '/';
    1623 
    16241619        #
    16251620        # Enable VBoxService verbose logging.
    16261621        #
    1627         self.oDebug.sVBoxServiceLogPath = self.getGuestTempDir(oTestVm) + sGuestSlash + "VBoxService";
     1622        self.oDebug.sVBoxServiceLogPath = oTestVm.pathJoin(self.getGuestTempDir(oTestVm), "VBoxService");
    16281623        if oTxsSession.syncMkDirPath(self.oDebug.sVBoxServiceLogPath, 0o777) is not True:
    16291624            return reporter.error('Failed to create directory "%s"!' % (self.oDebug.sVBoxServiceLogPath,));
    1630         sPathLogFile = os.path.join(self.oDebug.sVBoxServiceLogPath, 'VBoxService.log');
     1625        sPathLogFile = oTestVm.pathJoin(self.oDebug.sVBoxServiceLogPath, 'VBoxService.log');
    16311626
    16321627        reporter.log('VBoxService logs will be stored in "%s"' % (self.oDebug.sVBoxServiceLogPath,));
    16331628
    16341629        if oTestVm.isWindows():
    1635             sPathRegExe         = self.getGuestSystemDir(oTestVm) + sGuestSlash + 'reg.exe';
    1636             sPathVBoxServiceExe = self.getGuestSystemDir(oTestVm) + sGuestSlash + 'VBoxService.exe';
     1630            sPathRegExe         = oTestVm.pathJoin(self.getGuestSystemDir(oTestVm), 'reg.exe');
     1631            sPathVBoxServiceExe = oTestVm.pathJoin(self.getGuestSystemDir(oTestVm), 'VBoxService.exe');
    16371632            sImagePath          = '%s -vvvv --logfile %s' % (sPathVBoxServiceExe, sPathLogFile);
    16381633            self.oTstDrv.txsRunTest(oTxsSession, 'Enabling VBoxService verbose logging (via registry)', 30 * 1000,
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