Skip to content

Commit 1404d67

Browse files
authored
Remove full provider's specification from TEST_TYPES (apache#24901)
The new provider's selective tests introduce option to specify which providers should be tested (which is automatically used in CI). This works fine but in case when we remove Provider's tests from the list (MySQL/MsSQL) the removal was done only for the Provider's part, not for the detailed list of providers. That led to test attempting to run ``` [amazon,apache.hive,google,mysql,postgres] ``` for example. This PR fixes it by removing full Provider's specification.
1 parent 98aa044 commit 1404d67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/ci/testing/ci_run_airflow_testing.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ function run_all_test_types_in_parallel() {
107107
# Those tests will run in `main` anyway.
108108
if [[ ${test_types_to_run} == *"Providers"* ]]; then
109109
echo "${COLOR_YELLOW}Remove Providers from tests_types_to_run and skip running them altogether (mysql/mssql case).${COLOR_RESET}"
110-
test_types_to_run="${test_types_to_run//Providers/}"
110+
# shellcheck disable=SC2001
111+
test_types_to_run=$(echo "${test_types_to_run}" | sed 's/Providers[^ ]* *//')
111112
fi
112113
fi
113114
fi

0 commit comments

Comments
 (0)