From e1fc678b659215490e37bf6e1291a7a1fae3db60 Mon Sep 17 00:00:00 2001 From: Richael Zhuang Date: Fri, 29 May 2020 17:46:26 +0800 Subject: [PATCH] test/blobfs: fix a bug that $SPDK_TEST_STORAGE is NULL Move "source $rootdir/test/common/autotest_common.sh" above where $SPDK_TEST_STORAGE is used, or else $SPDK_TEST_STORAGE is NULL for its value is assigned in autotest_common.sh. Signed-off-by: Richael Zhuang Change-Id: Ie86af6034847ca2c046b18cd67cd8ad5707697a8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2694 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu --- test/blobfs/blobfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/blobfs/blobfs.sh b/test/blobfs/blobfs.sh index e330ddac3..29c4cc433 100755 --- a/test/blobfs/blobfs.sh +++ b/test/blobfs/blobfs.sh @@ -8,6 +8,8 @@ fi testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) +source $rootdir/test/common/autotest_common.sh + rpc_server=/var/tmp/spdk-blobfs.sock rpc_py="$rootdir/scripts/rpc.py -s $rpc_server" tmp_file=$SPDK_TEST_STORAGE/blobfs_file @@ -16,8 +18,6 @@ bdevname=BlobfsBdev mount_dir=/tmp/spdk_tmp_mount test_cache_size=512 -source $rootdir/test/common/autotest_common.sh - function cleanup() { if [[ -n $blobfs_pid && -e /proc/$blobfs_pid ]]; then killprocess $blobfs_pid