Changeset 71983 in vbox for trunk/src/VBox
- Timestamp:
- Apr 23, 2018 2:11:09 PM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit/tests/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/usb/tdUsb1.py
r71677 r71983 384 384 oUsbGadget = usbgadget.UsbGadget(); 385 385 reporter.log('Connecting to UTS: ' + sGadgetHost); 386 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetHost, uPort = uGadgetPort );386 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetHost, uPort = uGadgetPort, fTryConnect = True); 387 387 if fRc is True: 388 388 reporter.log('Connect succeeded'); … … 432 432 oUsbGadget = usbgadget.UsbGadget(); 433 433 reporter.log('Connecting to UTS: ' + sGadgetHost); 434 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetHost, uPort = uGadgetPort );434 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetHost, uPort = uGadgetPort, fTryConnect = True); 435 435 if fRc is True: 436 436 self.oVBox.host.addUSBDeviceSource('USBIP', sGadgetHost, sGadgetHost + (':%s' % oUsbGadget.getUsbIpPort()), [], []); -
trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py
r70660 r71983 1415 1415 return (self.iBusId, self.iDevId); 1416 1416 1417 def connectTo(self, cMsTimeout, sHostname, uPort = None, fUsbIpSupport = True, cMsIdleFudge = 0 ):1417 def connectTo(self, cMsTimeout, sHostname, uPort = None, fUsbIpSupport = True, cMsIdleFudge = 0, fTryConnect = False): 1418 1418 """ 1419 1419 Connects to the specified target device. … … 1431 1431 try: 1432 1432 oTransport = TransportTcp(sHostname, uPort); 1433 self.oUtsSession = Session(oTransport, cMsTimeout, cMsIdleFudge );1433 self.oUtsSession = Session(oTransport, cMsTimeout, cMsIdleFudge, fTryConnect); 1434 1434 1435 1435 if self.oUtsSession is not None:
Note:
See TracChangeset
for help on using the changeset viewer.