Correct macOS integration test umount

Previously errexit could prevent this from succeeding.
This commit is contained in:
Andrew Gaul 2019-06-19 10:34:58 -07:00
parent befc2e9e6f
commit 1cf3d2452e

View File

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