fix: look to exact return returned from initServer() in tests

This commit is contained in:
Harshavardhana 2021-08-24 15:06:23 -07:00
parent 6a7e22386e
commit fecb1b0489

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash -e
# #
set -e
set -E set -E
set -o pipefail set -o pipefail
@ -65,7 +64,7 @@ function start_minio_3_node() {
function check_online() { function check_online() {
if grep -q 'Unable to initialize' ${WORK_DIR}/dist-minio-*.log; then if grep -q 'Unable to initialize sub-systems' ${WORK_DIR}/dist-minio-*.log; then
echo "1" echo "1"
fi fi
} }
@ -86,7 +85,7 @@ function __init__()
} }
function perform_test() { function perform_test() {
start_minio_3_node 60 start_minio_3_node 120
echo "Testing Distributed Erasure setup healing of drives" echo "Testing Distributed Erasure setup healing of drives"
echo "Remove the contents of the disks belonging to '${1}' erasure set" echo "Remove the contents of the disks belonging to '${1}' erasure set"