Skip to content

Commit

Permalink
use S3FS_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Sep 24, 2019
1 parent 9ce7180 commit 9042c7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/pyarrow/tests/test_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,11 @@ def minio_server():
'MINIO_SECRET_KEY': secret_key
})

minio_dir = os.environ.get('S3FS_DIR', '')
minio_bin = os.path.join(minio_dir, 'minio') if minio_dir else 'minio'
try:
with tempfile.TemporaryDirectory() as tempdir:
args = ['minio', '--compat', 'server', '--quiet', '--address',
args = [minio_bin, '--compat', 'server', '--quiet', '--address',
address, tempdir]
with subprocess.Popen(args, env=env) as proc:
yield address, access_key, secret_key
Expand Down

0 comments on commit 9042c7e

Please sign in to comment.