From 8adef6b6574c8fb31b0a389dfa539e30d5a1fb07 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 17 Aug 2023 09:38:06 -0300 Subject: [PATCH] ci: enumerate integration test suites --- scripts/find-suites.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/find-suites.sh b/scripts/find-suites.sh index 685ab5ec8..47799f885 100755 --- a/scripts/find-suites.sh +++ b/scripts/find-suites.sh @@ -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)"