You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/11/09 08:34:37 UTC

[flink] branch master updated: [FLINK-10733][tests] Inline clean_log_files()

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

chesnay 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 89e59d8  [FLINK-10733][tests] Inline clean_log_files()
89e59d8 is described below

commit 89e59d8f398abf3597eb268c7e34927e35d8f383
Author: vinoyang <ya...@gmail.com>
AuthorDate: Fri Nov 9 16:34:32 2018 +0800

    [FLINK-10733][tests] Inline clean_log_files()
---
 flink-end-to-end-tests/test-scripts/common.sh             | 5 -----
 flink-end-to-end-tests/test-scripts/test-runner-common.sh | 3 ++-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/flink-end-to-end-tests/test-scripts/common.sh b/flink-end-to-end-tests/test-scripts/common.sh
index 36cc0df..5d45554 100644
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -645,11 +645,6 @@ function clean_stdout_files {
     echo "Deleted all stdout files under ${FLINK_DIR}/log/"
 }
 
-function clean_log_files {
-    rm ${FLINK_DIR}/log/*
-    echo "Deleted all files under ${FLINK_DIR}/log/"
-}
-
 # Expect a string to appear in the log files of the task manager before a given timeout
 # $1: expected string
 # $2: timeout in seconds
diff --git a/flink-end-to-end-tests/test-scripts/test-runner-common.sh b/flink-end-to-end-tests/test-scripts/test-runner-common.sh
index 44ec809..1eef75c 100644
--- a/flink-end-to-end-tests/test-scripts/test-runner-common.sh
+++ b/flink-end-to-end-tests/test-scripts/test-runner-common.sh
@@ -101,7 +101,8 @@ function cleanup_proc {
 
 # Cleans up all temporary folders and files
 function cleanup_tmp_files {
-    clean_log_files
+    rm ${FLINK_DIR}/log/*
+    echo "Deleted all files under ${FLINK_DIR}/log/"
 
     rm -rf ${TEST_DATA_DIR} 2> /dev/null
     echo "Deleted ${TEST_DATA_DIR}"