Replaced tests with comma

create_drop_db_gh
gindibay 2023-10-13 11:15:25 +03:00
parent 98068fe025
commit 701c4be79c
1 changed files with 3 additions and 3 deletions

View File

@ -432,8 +432,8 @@ jobs:
- name: Detect regression tests need to be ran
id: detect-regression-tests
run: |-
detected_changes=$(git diff origin/main... --name-only --diff-filter=AM | (grep 'src/test/regress/sql/.*\.sql\|src/test/regress/spec/.*\.spec\|src/test/regress/citus_tests/test/test_.*\.py' || true))
tests=${detected_changes// /,}
detected_changes=$(git diff origin/main... --name-only --diff-filter=AM | grep 'src/test/regress/sql/.*\.sql\|src/test/regress/spec/.*\.spec\|src/test/regress/citus_tests/test/test_.*\.py' | tr '\n' ',')
tests=$(echo "${detected_changes}" | sed 's/,$//')
if [ -z "${tests}" ]; then
echo "No test found."
else
@ -463,7 +463,7 @@ jobs:
- name: Run minimal tests
run: |-
tests="${{ needs.test-flakyness-pre.outputs.tests }}"
IFS=',' read -ra tests_array <<< "${tests}"
IFS=',' read -ra tests_array <<< "$tests"
for test in "${tests_array[@]}"
do
test_name=$(echo "${test}" | sed -r "s/.+\/(.+)\..+/\1/")