Skip to content

Commit

Permalink
fix_: UNIT_TEST_PACKAGES_FILTERED calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Sep 2, 2024
1 parent 4c9ff3f commit 6e9f57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _assets/scripts/run_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ DEFAULT_TIMEOUT_MINUTES=5
PROTOCOL_TIMEOUT_MINUTES=45

HAS_PROTOCOL_PACKAGE=true
if [[ $(echo "${UNIT_TEST_PACKAGES}" | grep -E '.*/protocol\s+') == "" ]]; then
if [[ $(echo "${UNIT_TEST_PACKAGES}" | grep -E '\s?\S+protocol\s+') == "" ]]; then
HAS_PROTOCOL_PACKAGE=false
fi

Expand All @@ -116,8 +116,8 @@ if [[ $HAS_PROTOCOL_PACKAGE == 'false' ]]; then
run_test_for_packages "${UNIT_TEST_PACKAGES}" "0" "${UNIT_TEST_COUNT}" "${DEFAULT_TIMEOUT_MINUTES}" "All packages"
else
# Spawn a process to test all packages except `protocol`
UNIT_TEST_PACKAGES=$(echo "${UNIT_TEST_PACKAGES}" | grep -v '.*/protocol\s+')
run_test_for_packages "${UNIT_TEST_PACKAGES}" "0" "${UNIT_TEST_COUNT}" "${DEFAULT_TIMEOUT_MINUTES}" "All packages except 'protocol'" &
UNIT_TEST_PACKAGES_FILTERED=$(echo "${UNIT_TEST_PACKAGES}" | tr ' ' '\n' | grep -v '/protocol$' | tr '\n' ' ')
run_test_for_packages "${UNIT_TEST_PACKAGES_FILTERED}" "0" "${UNIT_TEST_COUNT}" "${DEFAULT_TIMEOUT_MINUTES}" "All packages except 'protocol'" &

# Spawn separate processes to run `protocol` package
for ((i=1; i<=UNIT_TEST_COUNT; i++)); do
Expand Down

0 comments on commit 6e9f57c

Please sign in to comment.