VirtualBox

Ignore:
Timestamp:
May 6, 2016 9:04:21 AM (9 years ago)
Author:
vboxsync
Message:

ValidationKit/tdUsb1: Make sure we use a super speed capable gadget for the tests where it is required

File:
1 edited

Legend:

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

    r60634 r60856  
    315315            self.oVBox.host.addUSBDeviceSource('USBIP', sGadgetHost, sGadgetHost + (':%s' % oUsbGadget.getUsbIpPort()), [], []);
    316316
     317            fSuperSpeed = False;
     318            if sSpeed == 'Super':
     319                fSuperSpeed = True;
     320
    317321            # Create test device gadget and a filter to attach the device automatically.
    318             fRc = oUsbGadget.impersonate(usbgadget.g_ksGadgetImpersonationTest);
     322            fRc = self.oUsbGadget.impersonate(usbgadget.g_ksGadgetImpersonationTest, fSuperSpeed);
    319323            if fRc is True:
    320324                iBusId, _ = oUsbGadget.getGadgetBusAndDevId();
     
    362366            self.oVBox.host.addUSBDeviceSource('USBIP', sGadgetHost, sGadgetHost + (':%s' % oUsbGadget.getUsbIpPort()), [], []);
    363367
     368            fSuperSpeed = False;
     369            if sSpeed == 'Super':
     370                fSuperSpeed = True;
     371
    364372            # Create test device gadget and a filter to attach the device automatically.
    365             fRc = oUsbGadget.impersonate(usbgadget.g_ksGadgetImpersonationTest);
     373            fRc = self.oUsbGadget.impersonate(usbgadget.g_ksGadgetImpersonationTest, fSuperSpeed);
    366374            if fRc is True:
    367375                iBusId, _ = oUsbGadget.getGadgetBusAndDevId();
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