test/nbd: do not check for /dev/nbd0

We already modprobe nbd so there is no reason to
really check for it.  There could be a slight delay
between when modprobe returns and when /dev/nbd0 is
visible, so confirm it's there just complicates things.
If somehow nbd loads but /dev/nbd0 doesn't show up, it
will obviously elsewhere where the problem was.

Plus, this was checking for /dev/nbd0 before nbd was
modprobe'd which doesn't work.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I9df91d05db95ce1135f846e96580aeb377b4b445

Reviewed-on: https://review.gerrithub.io/385715
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Jim Harris 2017-11-03 16:40:12 -07:00 committed by Daniel Verkamp
parent acb9d2488d
commit 4f4ffc5b6f

View File

@ -325,10 +325,6 @@ function part_dev_by_gpt () {
return 1
fi
if [ ! -e /dev/nbd0 ]; then
return 1
fi
if [ -z "$operation" ]; then
operation="create"
fi