manage_sru script can't handle un-recognized kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Hardware Certification Tools |
Fix Released
|
High
|
Po-Hsu Lin |
Bug Description
There is a list in the script:
RELEASES = {'2.6': 'lucid',
'3.2': 'precise',
'3.13': 'trusty',
'3.16': 'utopic',
'3.19': 'vivid',
'4.2': 'wily',
'4.4': 'xenial'}
If the kernel number is not in this dictionary (yakkety for this case), the script will crash like:
Bug #1640928 in Kernel SRU Workflow: "linux-snapdragon: 4.4.0-1036.40 -proposed tracker": https:/
Bug #1641180 in Kernel SRU Workflow: "linux-raspi2: 4.8.0-1019.22 -proposed tracker": https:/
kernel file: /home/certifica
Traceback (most recent call last):
File "/home/
sys.
File "/home/
args.
File "/home/
codename = kernel_
TypeError: coercing to Unicode: need string or buffer, NoneType found
Related branches
- kaxing (community): Approve
-
Diff: 49 lines (+19/-12)1 file modifiedsru_tools/manage_sru (+19/-12)
Changed in hwcert-tools: | |
status: | New → In Progress |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
importance: | Undecided → High |
Changed in hwcert-tools: | |
status: | In Progress → Fix Released |