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 <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471957 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
138e6daec3
commit
6f209f63ae
@ -14,6 +14,7 @@ tmp_file=/tmp/blobfs_file
|
|||||||
conf_file=/tmp/blobfs.conf
|
conf_file=/tmp/blobfs.conf
|
||||||
bdevname=BlobfsBdev
|
bdevname=BlobfsBdev
|
||||||
mount_dir=/tmp/spdk_tmp_mount
|
mount_dir=/tmp/spdk_tmp_mount
|
||||||
|
test_cache_size=512
|
||||||
|
|
||||||
source $rootdir/test/common/autotest_common.sh
|
source $rootdir/test/common/autotest_common.sh
|
||||||
|
|
||||||
@ -35,6 +36,11 @@ function blobfs_start_app {
|
|||||||
|
|
||||||
echo "Process blobfs pid: $blobfs_pid"
|
echo "Process blobfs pid: $blobfs_pid"
|
||||||
waitforlisten $blobfs_pid $rpc_server
|
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() {
|
function blobfs_detect_test() {
|
||||||
|
Loading…
Reference in New Issue
Block a user