t/one-core-peak: Don't report errors if missing NVME features
authorErwan Velu <erwanaliasr1@gmail.com>
Sun, 17 Oct 2021 20:00:02 +0000 (22:00 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Mon, 25 Oct 2021 18:33:56 +0000 (20:33 +0200)
commit1122c303e582cb5385df35358b71d33dbac8fe52
tree12c82a5431d7766d3a4c6225e6b24de085954c3f
parentdd1f1ba00c9efb056dcc26894b608ca1214ddf03
t/one-core-peak: Don't report errors if missing NVME features

Some NVMEs doesn't support some features, an error message is reported
like in the following example :
NVMe status: INVALID_FIELD: A reserved coded value or an unsupported value in a defined field(0x4002)
nvme2n1: Temp:26 C, Autonomous Power State Transition:, PowerState:0, Completion Queues:135, Submission Queues:135

This commit will only report features if available :
nvme2n1: Completion Queues:135, Submission Queues:135, PowerState:0, Temp:27 C

Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
t/one-core-peak.sh