numam-spdk/test
Richael Zhuang a95aefc38a test: fix errors in test persistent-metadata.sh
Test failed both on x86_64 and aarch64 on some cases:
1.nvme_cfg=$($rootdir/scripts/gen_nvme.sh)
If the driver haven't been changed to vfio-pci(haven't run
scripts/setup.sh), we got no result from gen_nvme.sh.
2."mountpoints=$(lsblk /dev/$blkname --output MOUNTPOINT -n | wc -w)"
The global variable "blkname" (defined in get_nvme_name_from_bdf) is
always null here. For the scope of shell global variable is current
process. However, "name=$(get_nvme_name_from_bdf $1)" will create a
new process. We use variable "name" here.
3."name=$(get_nvme_name_from_bdf $1)"
If the "$rootdir/scripts/setup.sh reset" above is not ready, $name
will be null. For some non-x86 platforms, the waiting time maybe not
enough. So I adjust it to 5 seconds according to repeated tests.

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Change-Id: Ia91460a3116bc0cc7c6c5f5ee471957caf9d0e06
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/474184
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-11-21 08:03:49 +00:00
..
app app: Add cli options to print SPDK version 2019-11-15 18:25:31 +00:00
bdev test/bdevperf: add the QoS testing 2019-11-18 13:15:45 +00:00
blobfs test: fix Blobfs latent failures in test pool 2019-11-07 00:33:25 +00:00
blobstore test: Shellcheck - correct rule: Use a ( subshell ) to avoid having to cd back 2019-10-24 17:36:52 +00:00
common test/asan: suppress memory leaks in external libfuse3 2019-11-21 08:01:57 +00:00
compress test/compress: Wait for bdevs to be created 2019-10-09 14:39:26 +00:00
config_converter rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
env test/mem_callbacks: Fix compilation on ARM 2019-10-24 19:21:06 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl test: Shellcheck - apply rule SC2155 2019-11-12 18:14:59 +00:00
fuzz rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
ioat test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
iscsi_tgt test: Shellcheck - apply rule SC2155 2019-11-12 18:14:59 +00:00
json_config test: Shellcheck - move rule SC2162 to exception list 2019-11-12 18:14:59 +00:00
lvol rpc: Rename stop_nbd_disk to nbd_stop_disk 2019-09-19 20:56:35 +00:00
make test/make: add ignored libs to check_so_deps.sh 2019-09-09 22:15:24 +00:00
nvme test/nvme: fix wait for spdk_tgt error code on exit 2019-11-21 08:01:57 +00:00
nvmf test: Shellcheck - correct rule: Use grep -q... 2019-11-20 10:03:15 +00:00
ocf test: fix errors in test persistent-metadata.sh 2019-11-21 08:03:49 +00:00
openstack test/openstack: Add possibility to reinstall devstack on required branch 2019-11-07 13:22:50 +00:00
pmem test: Shellcheck - apply rule SC2155 2019-11-12 18:14:59 +00:00
rpc_client test/rpc_client_test: remove g_rpc_server_th_done sem_t 2019-11-07 22:53:21 +00:00
spdkcli test/rbd: Fix some issues in rbd.sh. 2019-10-24 17:12:32 +00:00
unit lib/nvme: change api for io message 2019-11-21 08:01:57 +00:00
vhost test/vhost: update raid bdev entries in config file 2019-11-14 03:43:47 +00:00
vmd test/vmd: return zero after sucessful test run 2019-10-15 16:37:40 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00