Commit e1946cd7 authored by Michal Berger's avatar Michal Berger Committed by Jim Harris
Browse files

test/common: Add SERIAL to the last check in waitforserial_disconnect()



The argument is meant to be SERIAL so the last check may erroneously
force waitforserial_disconnect() to report success if lsblk is not told
to include serial of the device in the output.

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


Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 6434aaa2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1056,7 +1056,7 @@ function waitforserial_disconnect() {
		sleep 1
	done

	if lsblk -l -o NAME | grep -q -w $1; then
	if lsblk -l -o NAME,SERIAL | grep -q -w $1; then
		return 1
	fi