Changeset 61831 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jun 22, 2016 9:06:11 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/txsclient.py
r60853 r61831 201 201 """ 202 202 _ = cb; _ = cMsTimeout; _ = fNoDataOk; 203 return False;203 return None; 204 204 205 205 def isConnectionOk(self): … … 551 551 so the client can inspect it later on. 552 552 """ 553 if cMsTimeout ==None:553 if cMsTimeout is None: 554 554 cMsTimeout = self.getMsLeft(500); 555 555 cbMsg, sOpcode, abPayload = self.oTransport.recvMsg(cMsTimeout, fNoDataOk); … … 613 613 Wrapper for TransportBase.sendMsg that inserts the correct timeout. 614 614 """ 615 if cMsTimeout ==None:615 if cMsTimeout is None: 616 616 cMsTimeout = self.getMsLeft(500); 617 617 return self.oTransport.sendMsg(sOpcode, cMsTimeout, aoPayload); … … 768 768 if cbMsg is None: 769 769 cbMsg, sOpcode, abPayload = self.recvReply(cMsTimeout=500, fNoDataOk=True); 770 if cbMsg ==None:770 if cbMsg is None: 771 771 # Check for time out before restarting the loop. 772 772 # Note! Only doing timeout checking here does mean that … … 865 865 # Parse the exit status (True), abort (None) or do nothing (False). 866 866 if rc is True: 867 if sOpcode == 'PROC OK': 868 rc = True; 869 else: 867 if sOpcode != 'PROC OK': 870 868 # Do proper parsing some other day if needed: 871 869 # PROC TOK, PROC TOA, PROC DWN, PROC DOO, … … 1075 1073 # Convert to array - this is silly! 1076 1074 abBuf = array.array('B'); 1077 for i in range(len(sRaw)):1075 for i, _ in enumerate(sRaw): 1078 1076 abBuf.append(ord(sRaw[i])); 1079 1077 sRaw = None; … … 1348 1346 oStdErr = reporter.FileWrapper('%sstderr' % sPrefix); 1349 1347 if fWithTestPipe: oTestPipe = reporter.FileWrapperTestPipe(); 1350 else: oTestPipe = '/dev/null'; 1348 else: oTestPipe = '/dev/null'; # pylint: disable=redefined-variable-type 1351 1349 1352 1350 return self.startTask(cMsTimeout, fIgnoreErrors, "exec", self.taskExecEx, -
trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py
r60794 r61831 293 293 """ 294 294 _ = cb; _ = cMsTimeout; _ = fNoDataOk; 295 return False;295 return None; 296 296 297 297 def isConnectionOk(self):
Note:
See TracChangeset
for help on using the changeset viewer.