You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/06/09 09:04:17 UTC

[airflow] 04/36: Fixed test-target command (#8795)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit f8bf546b97d70f359a12053ec772a14d2906e79b
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Sat May 9 18:34:52 2020 +0200

    Fixed test-target command (#8795)
    
    Wrong parameter sequence were passed to the run script.
    
    (cherry picked from commit 100f530ed57c5e8755f9e327160c2734ad5632e6)
---
 breeze                                  | 2 +-
 scripts/ci/in_container/run_ci_tests.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/breeze b/breeze
index 09c8fab..96d6f0e 100755
--- a/breeze
+++ b/breeze
@@ -536,7 +536,7 @@ function prepare_command_files() {
 
     # Prepare script for "run test"
     prepare_command_file "${BUILD_CACHE_DIR}/${LAST_DC_TEST_CI_FILE}" \
-        "${DC_RUN_CI_COMMAND}" "${COMPOSE_CI_FILE}" "true" "${AIRFLOW_CI_IMAGE}" '*'
+        "${DC_RUN_CI_COMMAND}" "true" "${COMPOSE_CI_FILE}" "${AIRFLOW_CI_IMAGE}" '*'
 
     # Prepare script for "run docker compose command"
     prepare_command_file "${BUILD_CACHE_DIR}/${LAST_DC_CI_FILE}" \
diff --git a/scripts/ci/in_container/run_ci_tests.sh b/scripts/ci/in_container/run_ci_tests.sh
index 720cde8..b046c08 100755
--- a/scripts/ci/in_container/run_ci_tests.sh
+++ b/scripts/ci/in_container/run_ci_tests.sh
@@ -31,7 +31,7 @@ pytest "${PYTEST_ARGS[@]}"
 RES=$?
 
 set +x
-if [[ "${RES}" == "0" && ${CI} == "true" ]]; then
+if [[ "${RES}" == "0" && ${CI:="false"} == "true" ]]; then
     echo "All tests successful"
     bash <(curl -s https://codecov.io/bash)
 fi