Sameer Nanda (Code Review)
unread,Nov 12, 2012, 12:59:55 PM11/12/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Todd Broch, Gerrit, Sameer Nanda, Benson Leung
Sameer Nanda has posted comments on this change.
Change subject: autotest: Add USB autosuspend whitelist smarts to power_x86Settings.
......................................................................
Patch Set 1: (4 inline comments)
....................................................
File client/site_tests/power_x86Settings/power_x86Settings.py
Line 198: out = utils.system_output(cmd, ignore_status=True)
probably better to use python's file read functions instead of shell commands?
Line 199: logging.debug("USB whitelist = %s", out)
nit: single quotes instead of double for consistency with rest of file.
Line 204: if re.search(re_str, match_str):
this seems like an exact match search. It is possible to specify wildcard matches (for example 1076:7e*) in the usb-autosuspend.conf file.
Line 230: whitelisted = self._usb_device_is_whitelisted(vid, pid)
while time is not an issue with these tests, it might be cleaner to read & parse the board-specific usb-autosuspend.conf file once outside of the for loop.
Gerrit-MessageType: comment
Gerrit-Change-Id: I50c56c0082a0651e9ab02300c537a69510b3f100
Gerrit-PatchSet: 1
Gerrit-Project: chromiumos/third_party/autotest
Gerrit-Branch: master
Gerrit-Owner: Todd Broch <
tbr...@chromium.org>
Gerrit-Reviewer: Benson Leung <
ble...@chromium.org>
Gerrit-Reviewer: Gerrit <
chrom...@google.com>
Gerrit-Reviewer: Sameer Nanda <
sna...@chromium.org>