mirror of https://github.com/citusdata/citus.git
Replaced tests with comma
parent
98068fe025
commit
701c4be79c
|
@ -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/")
|
||||
|
|
Loading…
Reference in New Issue