Changeset 83642 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Apr 9, 2020 8:26:45 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r83641 r83642 1578 1578 # VBoxService handling. 1579 1579 # 1580 def vboxServiceControl(self, oTxsSession, oTestVm, fStart): # pylint: disable=no-else-return1580 def vboxServiceControl(self, oTxsSession, oTestVm, fStart): 1581 1581 """ 1582 1582 Controls VBoxService on the guest by starting or stopping the service. 1583 1583 Returns success indicator. 1584 1584 """ 1585 1586 fRc = True; 1587 1585 1588 if oTestVm.isWindows(): 1586 1589 sPathSC = os.path.join(self.getGuestSystemDir(oTestVm), 'sc.exe'); 1587 1590 if fStart is True: 1588 returnself.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService with verbose logging', 30 * 1000, \1589 1591 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService with verbose logging', 30 * 1000, \ 1592 sPathSC, (sPathSC, 'start', 'VBoxService')); 1590 1593 else: 1591 returnself.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000, \1592 1594 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000, \ 1595 sPathSC, (sPathSC, 'stop', 'VBoxService')); 1593 1596 else: 1594 1597 reporter.log('Controlling VBoxService not supported for this guest yet'); 1595 1598 1596 return True;1599 return fRc; 1597 1600 1598 1601 #
Note:
See TracChangeset
for help on using the changeset viewer.