Filter mountpoints via mount -t (#1905)

This is portable between Linux and macOS.
This commit is contained in:
Andrew Gaul 2022-02-20 20:49:35 +09:00 committed by GitHub
parent 3fa03d4e1e
commit 302150b4f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1840,7 +1840,7 @@ function add_all_tests {
add_tests test_update_time_chown add_tests test_update_time_chown
add_tests test_update_time_xattr add_tests test_update_time_xattr
add_tests test_update_time_touch add_tests test_update_time_touch
if [ -e /proc/mounts ] && ! grep "^s3fs " < /proc/mounts | grep "$TEST_BUCKET_MOUNT_POINT_1 " | grep -q -e noatime -e relatime ; then if ! mount -t fuse.s3fs | grep "$TEST_BUCKET_MOUNT_POINT_1 " | grep -q -e noatime -e relatime ; then
add_tests test_update_time_touch_a add_tests test_update_time_touch_a
fi fi
add_tests test_update_time_append add_tests test_update_time_append
@ -1851,7 +1851,7 @@ function add_all_tests {
add_tests test_update_directory_time_chown add_tests test_update_directory_time_chown
add_tests test_update_directory_time_set_xattr add_tests test_update_directory_time_set_xattr
add_tests test_update_directory_time_touch add_tests test_update_directory_time_touch
if [ -e /proc/mounts ] && ! grep "^s3fs " < /proc/mounts | grep "$TEST_BUCKET_MOUNT_POINT_1 " | grep -q -e noatime -e relatime ; then if ! mount -t fuse.s3fs | grep "$TEST_BUCKET_MOUNT_POINT_1 " | grep -q -e noatime -e relatime ; then
add_tests test_update_directory_time_touch_a add_tests test_update_directory_time_touch_a
fi fi
add_tests test_update_directory_time_subdir add_tests test_update_directory_time_subdir