VirtualBox

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.

File:
1 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()), [], []);
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