From 9042c7e4c123901838d08482f250198521b25978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Sz=C5=B1cs?= Date: Sun, 22 Sep 2019 13:27:56 +0200 Subject: [PATCH] use S3FS_DIR --- python/pyarrow/tests/test_fs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/pyarrow/tests/test_fs.py b/python/pyarrow/tests/test_fs.py index dccbfa633f00d..cbe0752a578bb 100644 --- a/python/pyarrow/tests/test_fs.py +++ b/python/pyarrow/tests/test_fs.py @@ -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