Merge lp:~tai271828/checkbox/fix-1313581 into lp:checkbox
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Zygmunt Krynicki | ||||
Proposed branch: | lp:~tai271828/checkbox/fix-1313581 | ||||
Merge into: | lp:checkbox | ||||
Diff against target: |
232 lines (+77/-28) 4 files modified
checkbox-support/checkbox_support/udev.py (+17/-0) providers/plainbox-provider-checkbox/bin/removable_storage_test (+54/-20) providers/plainbox-provider-checkbox/jobs/suspend.txt.in (+3/-4) providers/plainbox-provider-checkbox/jobs/usb.txt.in (+3/-4) |
||||
To merge this branch: | bzr merge lp:~tai271828/checkbox/fix-1313581 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Needs Fixing | ||
Review via email: mp+217783@code.launchpad.net |
Commit message
Change the way we test usb 3.0 superspeed (LP: #1313581)
Description of the change
fixing LP: #1313581 Change the way we test usb 3.0 superspeed
in this case, we are going to confirm two things:
1. the usb storage is detected as Superspeed USB device
2. xhci_hcd module is used to control the usb device
The idea is,
for the 1st item,
the value of supported_speed is used to confirm the device is recognized as superspeed device because of the spec. 5GB.
For the 2nd item,
compare the pci slot name of the devices using xhci and
the pci slot name where the usb device is on,
to make sure the usb device does be on the bus using xhci.
checkbox-gui was run and
the testing items related to media cards and usb storages
which using the modified script removable_
were run to confirm there is no regression.
Unmerged revisions
- 2977. By Taihsiang Ho
-
E265 block comment should start with '# '
- 2976. By Taihsiang Ho
-
F841 local variable 'avg_write_time' is assigned to but never used
- 2975. By Taihsiang Ho
-
pep8 coding style, E125 continuation line does not distinguish itself from next logical line
- 2974. By Taihsiang Ho
-
pep8 coding style, E125 continuation line does not distinguish itself from next logical line
- 2973. By Taihsiang Ho
-
pep8 coding style, E128 continuation line under-indented for visual indent
- 2972. By Taihsiang Ho
-
pep8 coding style, continuation line over-indented for hanging indent
- 2971. By Taihsiang Ho
-
pep8 coding style, continuation line over-indented for visual indent
- 2970. By Taihsiang Ho
-
pep8 coding style, continuation line does not distinguish itself from next logical line
- 2969. By Taihsiang Ho
-
line over-indented for visual indent
- 2968. By Taihsiang Ho
-
trailing whitespace
Hey.
A few comments, can you make the code a tiny bit more pythonic?
81 + if (args.driver == 'xhci_hcd'): disks_speed[ disk] and disks_xhci[ disk]):
82 + if(5000000000 == test.rem_
83 + 'xhci' == test.rem_
84 + print("\t\tDevice Detected: SuperSpeed USB")
85 + print("\t\tDriver Detected: xhci_hcd")
Fix PEP-8 issues, run flake8 on that file and see what shows up. Fix issues affecting the things you've changed if more are reported.
And squash fixes/comments that belong in older patches.
If you need help with any of that just ask. Thanks