Merge lp:~nelson-chu/opencompute/add-ocp-pch-job into lp:opencompute/checkbox
Proposed by
Nelson Chu
Status: | Rejected |
---|---|
Rejected by: | Jeff Lane |
Proposed branch: | lp:~nelson-chu/opencompute/add-ocp-pch-job |
Merge into: | lp:opencompute/checkbox |
Diff against target: |
158 lines (+131/-0) 5 files modified
data/whitelists/opencompute-certify-local.whitelist (+43/-0) jobs/TC-001-0002-Platform_Controller_Hub.txt (+13/-0) jobs/local.txt.in (+7/-0) scripts/check_sata_port (+34/-0) scripts/check_usb_port (+34/-0) |
To merge this branch: | bzr merge lp:~nelson-chu/opencompute/add-ocp-pch-job |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Open Compute Developers | Pending | ||
Review via email: mp+205754@code.launchpad.net |
Description of the change
Add OCP PCH job
To post a comment you must log in.
Comments, I had some free time, so I fixed some issues before merging your code. But for the future, please note the following:
1: you run dmesg to get your data when the tests run. This is prone to failure as dmesg is a dump of the kernel ring buffer. If there is something dumping a lot of data to the ring buffer, the info you want on both SATA and USB ports will be flushed from the buffer. This can also happen simply if the machine is booted and sits long enough for routine kernel messages to fill the buffer. It's probably not a major issue, just one I thought was worth mentioning as a potential issue if you start seeing false failures during testing.
On Ubuntu, you can look at /var/log/dmesg which is the dmesg dump immediately after booting and does not change until the next boot.
2: You have comparisons like this:
[ $output == "2.0" ]
You need to put the $output in quotes like this:
[ "$output" == "2.0" ] to ensure you're doing string comparisons. Otherwise, an error is generated like this when the script runs:
./check_usb_port: line 28: [: ==: unary operator expected