test/nvme: handle errors for nvme-cli tests
Change-Id: I409da2520fd20c7b572e9ac9424c4ff468d0e878 Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478613 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
a71e30dee8
commit
3cca1b3673
@ -31,16 +31,22 @@ $rpc_py bdev_nvme_get_controllers
|
||||
for ns in /dev/spdk/nvme?n?; do
|
||||
${NVME_CMD} get-ns-id $ns
|
||||
${NVME_CMD} id-ns $ns
|
||||
${NVME_CMD} list-ns $ns
|
||||
|
||||
# list-ns: INVALID FIELD (00/02) sqid:0 cid:95 cdw0:0 sqhd:0013 p:1 m:0 dnr:1
|
||||
${NVME_CMD} list-ns $ns || true
|
||||
done
|
||||
|
||||
for ctrlr in /dev/spdk/nvme?; do
|
||||
${NVME_CMD} id-ctrl $ctrlr
|
||||
${NVME_CMD} list-ctrl $ctrlr
|
||||
|
||||
# list-ctrl: INVALID FIELD (00/02) sqid:0 cid:95 cdw0:0 sqhd:0011 p:1 m:0 dnr:1
|
||||
${NVME_CMD} list-ctrl $ctrlr || true
|
||||
${NVME_CMD} fw-log $ctrlr
|
||||
${NVME_CMD} smart-log $ctrlr
|
||||
${NVME_CMD} error-log $ctrlr
|
||||
${NVME_CMD} get-feature $ctrlr -f 1 -s 1 -l 100
|
||||
|
||||
# get-feature: INVALID FIELD (00/02) sqid:0 cid:95 cdw0:0 sqhd:0018 p:1 m:0 dnr:1
|
||||
${NVME_CMD} get-feature $ctrlr -f 1 -s 1 -l 100 || true
|
||||
${NVME_CMD} get-log $ctrlr -i 1 -l 100
|
||||
${NVME_CMD} reset $ctrlr
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user