From 6f209f63ae47ec503c7480c9fb3972f97ebd4b20 Mon Sep 17 00:00:00 2001 From: Xiaodong Liu Date: Tue, 22 Oct 2019 17:44:14 +0800 Subject: [PATCH] test: fix Blobfs latent failures in test pool For issue https://github.com/spdk/spdk/issues/990, It can be solved by setting cache pool a smaller size in order to fit CI test env. Change-Id: Ia5478df0f25de523917597eaeedcd858b70ab1e6 Signed-off-by: Xiaodong Liu Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471957 Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris Reviewed-by: Ziye Yang Tested-by: SPDK CI Jenkins --- test/blobfs/blobfs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/blobfs/blobfs.sh b/test/blobfs/blobfs.sh index 8b0286fa5..492775d0b 100755 --- a/test/blobfs/blobfs.sh +++ b/test/blobfs/blobfs.sh @@ -14,6 +14,7 @@ tmp_file=/tmp/blobfs_file conf_file=/tmp/blobfs.conf bdevname=BlobfsBdev mount_dir=/tmp/spdk_tmp_mount +test_cache_size=512 source $rootdir/test/common/autotest_common.sh @@ -35,6 +36,11 @@ function blobfs_start_app { echo "Process blobfs pid: $blobfs_pid" waitforlisten $blobfs_pid $rpc_server + + result=$($rpc_py blobfs_set_cache_size ${test_cache_size}) + if [ "${result}" != "True" ]; then + false + fi } function blobfs_detect_test() {