Commit c2b5b28c authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

test/nvme/cuse: Return proper nvme-cli's exit status



We don't use pipefail in our autotest infra so the piped sed here
masks potential failures coming from the nvme-cli. To avoid that,
check nvme-cli's exit status explicitly.

This is cosmetic, but it allows for the tests to fail early on
rather than at the end when the final checks are being made.

Change-Id: I94e975b112da1b216666621b035681ae05374aaf
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20254


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 1b8344d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ nvme() {
			-e 's#-subsys##g' \
			-e 's#PCIE#pcie#g' \
			-e 's#(null)#live#g'
	((PIPESTATUS[0] == 0))
}

kernel_out=()