test/nvme: only run setup.sh test on Linux
For now, our scripts don't support detecting mounted filesystems on NVMe devices on FreeBSD, so only run those tests on Linux. Change-Id: I558715bf4e95eaad2dd2d8a546626269c0837edb Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/393420 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
71db3a0870
commit
581107c77a
@ -31,6 +31,7 @@ function get_nvme_name_from_bdf {
|
||||
|
||||
timing_enter nvme
|
||||
|
||||
if [ `uname` = Linux ]; then
|
||||
# check that our setup.sh script does not bind NVMe devices to uio/vfio if they
|
||||
# have an active mountpoint
|
||||
$rootdir/scripts/setup.sh reset
|
||||
@ -86,6 +87,7 @@ if [ "$blkname" != "" ]; then
|
||||
else
|
||||
$rootdir/scripts/setup.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ `uname` = Linux ]; then
|
||||
start_stub "-s 2048 -i 0 -m 0xF"
|
||||
|
Loading…
Reference in New Issue
Block a user