Merge pull request #11468 from thalesmg/ci-integ-test-enum-20230817

ci: enumerate integration test suites
This commit is contained in:
Thales Macedo Garitezi 2023-08-18 14:35:28 -03:00 committed by GitHub
commit 48451e7e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -19,8 +19,14 @@ if [ -n "${EMQX_CT_SUITES:-}" ]; then
fi
TESTDIR="$1/test"
INTEGRATION_TESTDIR="$1/integration_test"
# Get the output of the find command
IFS=$'\n' read -r -d '' -a FILES < <(find "${TESTDIR}" -name "*_SUITE.erl" 2>/dev/null | sort && printf '\0')
if [[ -d "${INTEGRATION_TESTDIR}" ]]; then
IFS=$'\n' read -r -d '' -a FILES_INTEGRATION < <(find "${INTEGRATION_TESTDIR}" -name "*_SUITE.erl" 2>/dev/null | sort && printf '\0')
fi
# shellcheck disable=SC2206
FILES+=(${FILES_INTEGRATION:-})
SUITEGROUP_RAW="${SUITEGROUP:-1_1}"
SUITEGROUP="$(echo "$SUITEGROUP_RAW" | cut -d '_' -f1)"