Changeset 59884 in vbox for trunk/src/VBox/ValidationKit/tests/usb/tdUsb1.py
- Timestamp:
- Mar 1, 2016 11:27:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/usb/tdUsb1.py
r59813 r59884 9 9 __copyright__ = \ 10 10 """ 11 Copyright (C) 2014-201 5Oracle Corporation11 Copyright (C) 2014-2016 Oracle Corporation 12 12 13 13 This file is part of VirtualBox Open Source Edition (OSE), as … … 105 105 self.cUsbReattachCycles = self.cUsbReattachCyclesDef; 106 106 self.sHostname = socket.gethostname().lower(); 107 self.fUseTxs = True; 107 108 108 109 # … … 112 113 rc = vbox.TestDriver.showUsage(self); 113 114 reporter.log(''); 114 reporter.log('td StorageBenchmark1 Options:');115 reporter.log('tdUsb1 Options:'); 115 116 reporter.log(' --virt-modes <m1[:m2[:]]'); 116 117 reporter.log(' Default: %s' % (':'.join(self.asVirtModesDef))); … … 131 132 reporter.log(' --usb-reattach-cycles <cycles>'); 132 133 reporter.log(' Default: %s' % (self.cUsbReattachCyclesDef)); 134 reporter.log(' --local'); 135 reporter.log(' Don\'t use TXS for communication with the gadget but do everything'); 136 reporter.log(' on this host'); 133 137 return rc; 134 138 … … 196 200 raise base.InvalidOption('The "--usb-reattach-cycles" value "%s" is zero or negative.' \ 197 201 % (self.cUsbReattachCycles,)); 202 elif asArgs[iArg] == '--local': 203 self.fUseTxs = False; 198 204 else: 199 205 return vbox.TestDriver.parseOption(self, asArgs, iArg); … … 288 294 """ 289 295 # Get configured USB test devices from hostname we are running on 290 sGadgetHost, sGadgetType = self.getGadgetParams(self.sHostname, sSpeed); 296 if self.fUseTxs is True: 297 sGadgetHost, sGadgetType = self.getGadgetParams(self.sHostname, sSpeed); 298 else: 299 sGadgetHost = 'dummy'; 300 sGadgetType = usbgadget.g_ksGadgetTypeDummyHcd; 291 301 292 302 # Create device filter … … 295 305 oUsbGadget = usbgadget.UsbGadget(); 296 306 reporter.log('Connecting to gadget: ' + sGadgetType); 297 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetType, s GadgetHost);307 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetType, self.fUseTxs, sGadgetHost); 298 308 if fRc is True: 299 309 reporter.log('Connect succeeded'); … … 330 340 """ 331 341 # Get configured USB test devices from hostname we are running on 332 sGadgetHost, sGadgetType = self.getGadgetParams(self.sHostname, sSpeed); 342 if self.fUseTxs is True: 343 sGadgetHost, sGadgetType = self.getGadgetParams(self.sHostname, sSpeed); 344 else: 345 sGadgetHost = 'dummy'; 346 sGadgetType = usbgadget.g_ksGadgetTypeDummyHcd; 333 347 334 348 # Create device filter … … 337 351 oUsbGadget = usbgadget.UsbGadget(); 338 352 reporter.log('Connecting to gadget: ' + sGadgetType); 339 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetType, s GadgetHost);353 fRc = oUsbGadget.connectTo(30 * 1000, sGadgetType, self.fUseTxs, sGadgetHost); 340 354 if fRc is True: 341 355 reporter.log('Connect succeeded');
Note:
See TracChangeset
for help on using the changeset viewer.