From ea64886469cc6c0ddd1a9508d46babd6302ed1eb Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 24 Oct 2021 08:24:47 +0000 Subject: [PATCH] Fixed a bug in test_(zero_)cache_file_stat test function --- test/integration-test-main.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration-test-main.sh b/test/integration-test-main.sh index 26c98c4..917d2d2 100755 --- a/test/integration-test-main.sh +++ b/test/integration-test-main.sh @@ -1232,9 +1232,9 @@ function test_cache_file_stat() { dd if=/dev/urandom of="${BIG_FILE}" bs=$BIG_FILE_BLOCK_SIZE count=$BIG_FILE_COUNT # - # get "testrun-xxx" directory name + # The first argument of the script is "testrun-" the directory name. # - CACHE_TESTRUN_DIR=$(ls -1 ${CACHE_DIR}/${TEST_BUCKET_1}/ 2>/dev/null | grep testrun 2>/dev/null) + CACHE_TESTRUN_DIR=$1 # # get cache file inode number @@ -1332,9 +1332,9 @@ function test_zero_cache_file_stat() { touch ${TEST_TEXT_FILE} # - # get "testrun-xxx" directory name + # The first argument of the script is "testrun-" the directory name. # - CACHE_TESTRUN_DIR=$(ls -1 ${CACHE_DIR}/${TEST_BUCKET_1}/ 2>/dev/null | grep testrun 2>/dev/null) + CACHE_TESTRUN_DIR=$1 # [NOTE] # The stat file is a one-line text file, expecting for ":0"(ex. "4543937: 0").