numam-spdk/test/setup
Rui Chang 8af74b5ac7 test/setup: fix failure in allowed() when there is only one device
If there is only one device in ${devs[*]}, we see failure backtrace:
========== Backtrace start: ==========

in /home/jenkins/spdk_repo/spdk/test/setup/acl.sh:41 -> allowed([])
     ...
   36  	}
   37
   38  	allowed() {
   39  		PCI_ALLOWED="${devs[0]}" setup output config \
   40  			| grep "Skipping denied controller at " \
=> 41  			| grep -v "${devs[0]}"
   42  		verify "${devs[@]:1}"
   43  		setup reset
   44  	}
   45
   46  	setup reset

Signed-off-by: Rui Chang <rui.chang@arm.com>
Change-Id: I9aba6b19f6de6bea7149e0f39da8d5d8d6978a4e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7467
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Michal Berger <michalx.berger@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-04-27 08:36:35 +00:00
..
acl.sh test/setup: fix failure in allowed() when there is only one device 2021-04-27 08:36:35 +00:00
common.sh test/setup: Make sure big enough drive is selected for the tests 2021-04-15 11:24:08 +00:00
devices.sh test/setup: Make sure big enough drive is selected for the tests 2021-04-15 11:24:08 +00:00
driver.sh test/setup: Check if correct driver is in use 2021-03-29 07:24:14 +00:00
hugepages.sh test/setup: Add tests for hugepages allocation 2021-03-29 07:24:14 +00:00
test-setup.sh test/setup: Add tests for different block devices' setups 2021-03-29 07:24:14 +00:00