From e520d776f2e5d20eb2e836f5f883ffc1aa776b75 Mon Sep 17 00:00:00 2001 From: Pedro Juarez Date: Wed, 12 Jul 2023 16:12:18 -0600 Subject: [PATCH] Run sts tests in parallel Signed-off-by: pjuarezd --- testing/test-policy-binding.sh | 43 +++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/testing/test-policy-binding.sh b/testing/test-policy-binding.sh index 6d24c17bd50..21630403a0f 100755 --- a/testing/test-policy-binding.sh +++ b/testing/test-policy-binding.sh @@ -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 }