Merge pull request #1045 from gaul/test/umount-s3fs

Correct macOS integration test umount
This commit is contained in:
Takeshi Nakatani 2019-06-23 23:02:46 +09:00 committed by GitHub
commit c18fc901c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,8 +221,7 @@ function start_s3fs {
function stop_s3fs { function stop_s3fs {
# Retry in case file system is in use # Retry in case file system is in use
if [ `uname` = "Darwin" ]; then if [ `uname` = "Darwin" ]; then
df | grep -q $TEST_BUCKET_MOUNT_POINT_1 if df | grep -q $TEST_BUCKET_MOUNT_POINT_1; then
if [ $? -eq 0 ]; then
retry 10 df | grep -q $TEST_BUCKET_MOUNT_POINT_1 && umount $TEST_BUCKET_MOUNT_POINT_1 retry 10 df | grep -q $TEST_BUCKET_MOUNT_POINT_1 && umount $TEST_BUCKET_MOUNT_POINT_1
fi fi
else else