From 4341291cc2efa33b69c0170e7b7864cecd522344 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Thu, 3 Dec 2020 02:45:05 +0900 Subject: [PATCH] Changed a condition of the atime test(fixed #1477) (#1487) --- test/integration-test-main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration-test-main.sh b/test/integration-test-main.sh index c417c14..14bc7d4 100755 --- a/test/integration-test-main.sh +++ b/test/integration-test-main.sh @@ -672,7 +672,7 @@ function test_update_time() { # # "touch -a" -> update ctime/atime, not update mtime # - if ! cat /proc/mounts | grep "^s3fs $TEST_BUCKET_MOUNT_POINT_1 " | grep -e noatime -e relatime >/dev/null; then + if ! cat /proc/mounts | grep "^s3fs " | grep "$TEST_BUCKET_MOUNT_POINT_1 " | grep -e noatime -e relatime >/dev/null; then touch -a $TEST_TEXT_FILE atime=`get_atime $TEST_TEXT_FILE` ctime=`get_ctime $TEST_TEXT_FILE` @@ -820,7 +820,7 @@ function test_update_directory_time() { # # "touch -a" -> update ctime/atime, not update mtime # - if ! cat /proc/mounts | grep "^s3fs $TEST_BUCKET_MOUNT_POINT_1 " | grep -e noatime -e relatime >/dev/null; then + if ! cat /proc/mounts | grep "^s3fs " | grep "$TEST_BUCKET_MOUNT_POINT_1 " | grep -e noatime -e relatime >/dev/null; then touch -a $TEST_DIR atime=`get_atime $TEST_DIR` ctime=`get_ctime $TEST_DIR`