Skip to content

Commit

Permalink
fix: bring back previous change to functional test script
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored and minio-trusted committed Dec 9, 2020
1 parent beb3d53 commit 44122bb
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions run_functional_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@ function run_minio_server() {
tests/functional/minio server --config-dir tests/functional/.cfg tests/functional/.d{1...4} >tests/functional/minio.log 2>&1 &
}

run_minio_server
sleep 3
if [ -z ${SERVER_ENDPOINT+x} ]; then
run_minio_server
trap 'pkill -9 minio' INT

pip install --user .
SECRET_KEY=minio123 ACCESS_KEY=minio SERVER_ENDPOINT=localhost:9000 ENABLE_HTTPS=0 MINT_MODE=full PYTHONPATH=$PWD python tests/functional/tests.py
export MINT_MODE=full
export SERVER_ENDPOINT=localhost:9000
export ACCESS_KEY=minio
export SECRET_KEY=minio123
export ENABLE_HTTPS=0
fi

PYTHONPATH=$PWD python tests/functional/tests.py
pkill -9 minio

0 comments on commit 44122bb

Please sign in to comment.