VirtualBox

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


Ignore:
Timestamp:
Apr 9, 2020 8:26:45 AM (5 years ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Pylint.

File:
1 edited

Legend:

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

    r83641 r83642  
    15781578    # VBoxService handling.
    15791579    #
    1580     def vboxServiceControl(self, oTxsSession, oTestVm, fStart): # pylint: disable=no-else-return
     1580    def vboxServiceControl(self, oTxsSession, oTestVm, fStart):
    15811581        """
    15821582        Controls VBoxService on the guest by starting or stopping the service.
    15831583        Returns success indicator.
    15841584        """
     1585
     1586        fRc = True;
     1587
    15851588        if oTestVm.isWindows():
    15861589            sPathSC = os.path.join(self.getGuestSystemDir(oTestVm), 'sc.exe');
    15871590            if fStart is True:
    1588                 return self.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService with verbose logging', 30 * 1000, \
    1589                                                sPathSC, (sPathSC, 'start', 'VBoxService'));
     1591                fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Starting VBoxService with verbose logging', 30 * 1000, \
     1592                                              sPathSC, (sPathSC, 'start', 'VBoxService'));
    15901593            else:
    1591                 return self.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000, \
    1592                                                sPathSC, (sPathSC, 'stop', 'VBoxService'));
     1594                fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Stopping VBoxService', 30 * 1000, \
     1595                                              sPathSC, (sPathSC, 'stop', 'VBoxService'));
    15931596        else:
    15941597            reporter.log('Controlling VBoxService not supported for this guest yet');
    15951598
    1596         return True;
     1599        return fRc;
    15971600
    15981601    #
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