Skip to content

Commit

Permalink
Run sts tests in parallel
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
  • Loading branch information
pjuarezd committed Jul 12, 2023
1 parent 8e420ca commit e520d77
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions testing/test-policy-binding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,48 @@ function main() {

setup_sts_bucket

#install_sts_client "minio-sdk-dotnet"
# install_sts_client "minio-sdk-dotnet" &
# minio_dotnet_pid=$!

install_sts_client "minio-sdk-go"
install_sts_client "minio-sdk-go" &
minio_go_pid=$!

#install_sts_client "minio-sdk-java"
#install_sts_client "minio-sdk-java" &
#minio_java_pid=$!

# install_sts_client "minio-sdk-javascript"
# install_sts_client "minio-sdk-javascript" &
#minio_js_pid=$!

install_sts_client "minio-sdk-python"
install_sts_client "minio-sdk-python" &
minio_py_pid=$!te

install_sts_client "aws-sdk-python"
install_sts_client "aws-sdk-python" &
aws_py_pid=$!

# wait $minio_dotnet_pid
# e1=$?

wait $minio_go_pid
e2=$?

# wait $minio_java_pid
# e3=$?

# wait $minio_js_pid
# e4=$?

wait $minio_py_pid
e5=$?

wait $aws_py_pid
e6=$?

# Check exit statuses
if [[ $e2 -ne 0 || $e5 -ne 0 && $e6 -ne 0 ]]; then
echo "Some commands failed"
destroy_kind
exit 1
fi

destroy_kind
}
Expand Down

0 comments on commit e520d77

Please sign in to comment.