Skip to content

Commit

Permalink
[FLINK-10733][tests] Inline clean_log_files()
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua authored and zentol committed Nov 9, 2018
1 parent 0a2329f commit 89e59d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions flink-end-to-end-tests/test-scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion flink-end-to-end-tests/test-scripts/test-runner-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 89e59d8

Please sign in to comment.