Allow changing temporary directory used for tests

Set temporary directory to $TMPDIR if set or use default /var/tmp
This commit is contained in:
Carsten Grohmann 2021-02-16 21:04:24 +01:00 committed by Andrew Gaul
parent 1c8aadafd1
commit 5debf523b0
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@
# TEST_BUCKET_1=bucketname Name of bucket to use
# S3PROXY_BINARY="" Specify empty string to skip S3Proxy start
# S3_URL="https://s3.amazonaws.com" Specify Amazon AWS as the S3 provider
# S3_ENDPOINT="us-east-1" Specify region
# S3_ENDPOINT="us-east-1" Specify region
# TMPDIR="/var/tmp" Set to use a temporary directory different
# from /var/tmp
#
# Example of running against Amazon S3 using a bucket named "bucket":
#

View File

@ -31,7 +31,7 @@ TEST_DIR=testdir
ALT_TEST_TEXT_FILE=test-s3fs-ALT.txt
TEST_TEXT_FILE_LENGTH=15
BIG_FILE=big-file-s3fs.txt
TEMP_DIR="/var/tmp"
TEMP_DIR=${TMPDIR:-"/var/tmp"}
# /dev/urandom can only return 32 MB per block maximum
BIG_FILE_BLOCK_SIZE=$((25 * 1024 * 1024))
BIG_FILE_COUNT=1