VirtualBox

Changeset 71983 in vbox for trunk


Ignore:
Timestamp:
Apr 23, 2018 2:11:09 PM (7 years ago)
Author:
vboxsync
Message:

ValidationKit/tdUsb1: Needed more changes to truly turn gadget host connect failures into a reason for skipping the test, because the error when taskConnect detected a timeout was overriding the test status.

Location:
trunk/src/VBox/ValidationKit/tests/usb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/usb/tdUsb1.py

    r71677 r71983  
    384384        oUsbGadget = usbgadget.UsbGadget();
    385385        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);
    387387        if fRc is True:
    388388            reporter.log('Connect succeeded');
     
    432432        oUsbGadget = usbgadget.UsbGadget();
    433433        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);
    435435        if fRc is True:
    436436            self.oVBox.host.addUSBDeviceSource('USBIP', sGadgetHost, sGadgetHost + (':%s' % oUsbGadget.getUsbIpPort()), [], []);
  • trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py

    r70660 r71983  
    14151415        return (self.iBusId, self.iDevId);
    14161416
    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):
    14181418        """
    14191419        Connects to the specified target device.
     
    14311431        try:
    14321432            oTransport = TransportTcp(sHostname, uPort);
    1433             self.oUtsSession = Session(oTransport, cMsTimeout, cMsIdleFudge);
     1433            self.oUtsSession = Session(oTransport, cMsTimeout, cMsIdleFudge, fTryConnect);
    14341434
    14351435            if self.oUtsSession is not None:
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