VirtualBox

Changeset 98597 in vbox


Ignore:
Timestamp:
Feb 15, 2023 11:05:34 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155883
Message:

ValKit/tdAdd*.py: There is no sc.exe on NT4 and probably neither on W2K.

File:
1 edited

Legend:

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

    r98596 r98597  
    16041604        if oTestVm.isWindows():
    16051605            sPathSC = os.path.join(self.oTstDrv.getGuestSystemDir(oTestVm), 'sc.exe');
     1606            if oTestVm.sKind in ('WindowsNT3x', 'WindowsNT4', 'Windows2000',): # W2K too?
     1607                sPathSC = os.path.join(self.oTstDrv.getGuestSystemDir(oTestVm), 'net.exe');
    16061608            if fStart is True:
    1607                 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService', 30 * 1000, \
     1609                fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService', 30 * 1000,
    16081610                                              sPathSC, (sPathSC, 'start', 'VBoxService'));
    16091611            else:
    1610                 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000, \
     1612                fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000,
    16111613                                              sPathSC, (sPathSC, 'stop', 'VBoxService'));
    16121614        elif oTestVm.isLinux():
    16131615            sPathService = "/sbin/rcvboxadd-service";
    16141616            if fStart is True:
    1615                 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService', 30 * 1000, \
     1617                fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService', 30 * 1000,
    16161618                                              sPathService, (sPathService, 'start'));
    16171619            else:
    1618                 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000, \
     1620                fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000,
    16191621                                              sPathService, (sPathService, 'stop'));
    16201622        else:
     
    16881690        fEnableVerboseLogging = False;
    16891691
    1690         # On Windows guests we always can enable verbose logging.
    1691         if oTestVm.isWindows():
     1692        # On Windows guests we always can enable verbose logging. NT4 and W2K doesn't have reg.exe nor (at least NT4) sc.exe.
     1693        if oTestVm.isWindows() and oTestVm.sKind not in ('WindowsNT4', 'Windows2000',):
    16921694            fEnableVerboseLogging = True;
    16931695
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