mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-15 16:57:10 +00:00
commit
f8b5c911ed
@ -225,9 +225,12 @@ function start_s3fs {
|
|||||||
-o dbglevel=${DBGLEVEL:=info} \
|
-o dbglevel=${DBGLEVEL:=info} \
|
||||||
-o retries=3 \
|
-o retries=3 \
|
||||||
-f \
|
-f \
|
||||||
"${@}" | stdbuf -oL -eL sed $SED_BUFFER_FLAG "s/^/s3fs: /" &
|
"${@}" &
|
||||||
S3FS_PID=$!
|
echo $! >&3
|
||||||
)
|
) 3>pid | stdbuf -oL -eL sed $SED_BUFFER_FLAG "s/^/s3fs: /" &
|
||||||
|
sleep 1
|
||||||
|
export S3FS_PID=$(<pid)
|
||||||
|
rm -f pid
|
||||||
|
|
||||||
if [ `uname` = "Darwin" ]; then
|
if [ `uname` = "Darwin" ]; then
|
||||||
set +o errexit
|
set +o errexit
|
||||||
|
@ -318,8 +318,8 @@ function test_external_directory_creation {
|
|||||||
describe "Test external directory creation ..."
|
describe "Test external directory creation ..."
|
||||||
OBJECT_NAME="$(basename $PWD)/directory/${TEST_TEXT_FILE}"
|
OBJECT_NAME="$(basename $PWD)/directory/${TEST_TEXT_FILE}"
|
||||||
echo "data" | aws_cli s3 cp - "s3://${TEST_BUCKET_1}/${OBJECT_NAME}"
|
echo "data" | aws_cli s3 cp - "s3://${TEST_BUCKET_1}/${OBJECT_NAME}"
|
||||||
ls | grep directory
|
ls | grep -q directory
|
||||||
get_permissions directory | grep ^750$
|
get_permissions directory | grep -q 750$
|
||||||
ls directory
|
ls directory
|
||||||
cmp <(echo "data") directory/${TEST_TEXT_FILE}
|
cmp <(echo "data") directory/${TEST_TEXT_FILE}
|
||||||
rm -f directory/${TEST_TEXT_FILE}
|
rm -f directory/${TEST_TEXT_FILE}
|
||||||
@ -1045,7 +1045,7 @@ function test_ut_ossfs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function add_all_tests {
|
function add_all_tests {
|
||||||
if `ps -ef | grep -v grep | grep s3fs | grep -q use_cache`; then
|
if ps u $S3FS_PID | grep -q use_cache; then
|
||||||
add_tests test_cache_file_stat
|
add_tests test_cache_file_stat
|
||||||
fi
|
fi
|
||||||
if ! ps u $S3FS_PID | grep -q ensure_diskfree && ! uname | grep -q Darwin; then
|
if ! ps u $S3FS_PID | grep -q ensure_diskfree && ! uname | grep -q Darwin; then
|
||||||
|
Loading…
Reference in New Issue
Block a user