Changeset 79087 in vbox for trunk/src/VBox/ValidationKit/testdriver/base.py
- Timestamp:
- Jun 11, 2019 11:58:28 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/base.py
r79067 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 """ … … 222 222 fRc = False; 223 223 else: 224 fRc = __processSudoKill(uPid, signal.SIGUSR1, fSudo); # pylint: disable= E1101224 fRc = __processSudoKill(uPid, signal.SIGUSR1, fSudo); # pylint: disable=no-member 225 225 return fRc; 226 226 … … 246 246 fRc = winbase.processKill(uPid); 247 247 else: 248 fRc = __processSudoKill(uPid, signal.SIGKILL, fSudo); # pylint: disable= E1101248 fRc = __processSudoKill(uPid, signal.SIGKILL, fSudo); # pylint: disable=no-member 249 249 return fRc; 250 250 … … 307 307 308 308 # ps fails with non-zero exit code if the pid wasn't found. 309 if iExitCode is not0:309 if iExitCode != 0: 310 310 return False; 311 311 if sCurName is None: … … 380 380 def __del__(self): 381 381 """In case we need it later on.""" 382 pass; 382 pass; # pylint: disable=unnecessary-pass 383 383 384 384 def toString(self): … … 395 395 def lockTask(self): 396 396 """ Wrapper around oCv.acquire(). """ 397 if True is True: # change to False for debugging deadlocks. 397 if True is True: # change to False for debugging deadlocks. # pylint: disable=comparison-with-itself 398 398 self.oCv.acquire(); 399 399 else: … … 600 600 try: 601 601 (uPid, uStatus) = os.waitpid(self.hWin, 0); 602 if uPid == self.hWin or uPid == self.uPid:602 if uPid in (self.hWin, self.uPid,): 603 603 self.hWin.Detach(); # waitpid closed it, so it's now invalid. 604 604 self.hWin = None; … … 613 613 else: 614 614 try: 615 (uPid, uStatus) = os.waitpid(self.uPid, os.WNOHANG); # pylint: disable= E1101615 (uPid, uStatus) = os.waitpid(self.uPid, os.WNOHANG); # pylint: disable=no-member 616 616 except: 617 617 reporter.logXcpt(); … … 773 773 774 774 775 class TestDriverBase(object): # pylint: disable= R0902775 class TestDriverBase(object): # pylint: disable=too-many-instance-attributes 776 776 """ 777 777 The base test driver. … … 1628 1628 1629 1629 1630 def innerMain(self, asArgs = None): # pylint: disable= R09151630 def innerMain(self, asArgs = None): # pylint: disable=too-many-statements 1631 1631 """ 1632 1632 Exception wrapped main() worker. … … 1749 1749 1750 1750 # The old, deprecated name. 1751 TestDriver = TestDriverBase; # pylint: disable= C01031751 TestDriver = TestDriverBase; # pylint: disable=invalid-name 1752 1752 1753 1753 … … 1756 1756 # 1757 1757 1758 # pylint: disable= C01111758 # pylint: disable=missing-docstring 1759 1759 class TestDriverBaseTestCase(unittest.TestCase): 1760 1760 def setUp(self):
Note:
See TracChangeset
for help on using the changeset viewer.