VirtualBox

Ignore:
Timestamp:
Apr 17, 2020 8:00:48 AM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/Guest Control: Some slash fixes in prepareGuestForTesting() needed for cross-platform testing.

File:
1 edited

Legend:

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

    r83713 r83736  
    16171617                return reporter.error('Failed to create directory "%s"!' % (sDir,));
    16181618
     1619        if oTestVm.isWindows():
     1620            sGuestSlash = '\\';
     1621        else:
     1622            sGuestSlash = '/';
     1623
    16191624        #
    16201625        # Enable VBoxService verbose logging.
    16211626        #
    1622         self.oDebug.sVBoxServiceLogPath = os.path.join(self.getGuestTempDir(oTestVm), "VBoxService");
     1627        self.oDebug.sVBoxServiceLogPath = self.getGuestTempDir(oTestVm) + sGuestSlash + "VBoxService";
    16231628        if oTxsSession.syncMkDirPath(self.oDebug.sVBoxServiceLogPath, 0o777) is not True:
    16241629            return reporter.error('Failed to create directory "%s"!' % (self.oDebug.sVBoxServiceLogPath,));
     
    16281633
    16291634        if oTestVm.isWindows():
    1630             sPathRegExe         = os.path.join(self.getGuestSystemDir(oTestVm), 'reg.exe');
    1631             sPathVBoxServiceExe = os.path.join(self.getGuestSystemDir(oTestVm), 'VBoxService.exe');
     1635            sPathRegExe         = self.getGuestSystemDir(oTestVm) + sGuestSlash + 'reg.exe';
     1636            sPathVBoxServiceExe = self.getGuestSystemDir(oTestVm) + sGuestSlash + 'VBoxService.exe';
    16321637            sImagePath          = '%s -vvvv --logfile %s' % (sPathVBoxServiceExe, sPathLogFile);
    16331638            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