You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by hx...@apache.org on 2022/07/20 06:13:05 UTC

[flink] branch master updated: [FLINK-28544][python][e2e] Clean up python environment after e2e tests

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

hxb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b3ac775fe7 [FLINK-28544][python][e2e] Clean up python environment after e2e tests
6b3ac775fe7 is described below

commit 6b3ac775fe72514192484f7c923da37ebea5f524
Author: huangxingbo <hx...@apache.org>
AuthorDate: Tue Jul 19 10:20:24 2022 +0800

    [FLINK-28544][python][e2e] Clean up python environment after e2e tests
    
    This closes #20301.
---
 flink-python/dev/lint-python.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/flink-python/dev/lint-python.sh b/flink-python/dev/lint-python.sh
index fcb98881b06..6fc8003c2bf 100755
--- a/flink-python/dev/lint-python.sh
+++ b/flink-python/dev/lint-python.sh
@@ -840,6 +840,7 @@ done
 skip_checks=0
 
 if [[ ${CLEAN_UP_FLAG} -eq 1 ]]; then
+    printf "clean up python environment"
     rm -rf ${CONDA_HOME}
     rm -rf ${STAGE_FILE}
     rm -rf ${FLINK_PYTHON_DIR}/.tox
@@ -864,7 +865,9 @@ else
 fi
 
 # install environment
-install_environment
+if [[ ${CLEAN_UP_FLAG} -eq 0 ]]; then
+    install_environment
+fi
 
 pushd "$FLINK_PYTHON_DIR" &> /dev/null
 # exec all selected checks