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 2022/01/22 15:49:27 UTC

[airflow] 14/33: Add color to pytest tests on CI (#20723)

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

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

commit 4c22b90ce30ca995b385e7fc4cc20b28e08f2abd
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Thu Jan 6 17:49:39 2022 +0100

    Add color to pytest tests on CI (#20723)
    
    While GitHub CI supports coloured output, the programs cannot
    detect it properly because the output is redirected. Similarly
    as in all other cases we force the color output.
    
    (cherry picked from commit 6ed3f5d97fe8f8967df5624f62e69ce2a58a9413)
---
 scripts/ci/images/ci_run_docker_tests.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/scripts/ci/images/ci_run_docker_tests.py b/scripts/ci/images/ci_run_docker_tests.py
index c9c8a05..6fce6e6 100755
--- a/scripts/ci/images/ci_run_docker_tests.py
+++ b/scripts/ci/images/ci_run_docker_tests.py
@@ -87,12 +87,7 @@ def main():
     if not extra_pytest_args:
         raise SystemExit("You must select the tests to run.")
 
-    pytest_args = (
-        "--pythonwarnings=ignore::DeprecationWarning",
-        "--pythonwarnings=ignore::PendingDeprecationWarning",
-        "-n",
-        "auto",
-    )
+    pytest_args = ("-n", "auto", "--color=yes")
 
     run_verbose([str(python_bin), "-m", "pytest", *pytest_args, *extra_pytest_args])