Skip to content

Commit

Permalink
fix: cleanup data after killing processes
Browse files Browse the repository at this point in the history
  • Loading branch information
buchuitoudegou committed Jan 24, 2022
1 parent 9989747 commit 8b0ebbb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dm/tests/all_mode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ function test_expression_filter() {
function test_regexpr_router() {
echo "[$(date)] <<<<<< start test_regexpr_router >>>>>>"
cleanup_process
cleanup_data all_mode
cleanup_data test3gd8917777
cleanup_data test4s_2022
cleanup_data_upstream test3gd8917777
cleanup_data_upstream test4s_2022
run_sql_file $cur/data/db1.regexpr.sql $MYSQL_HOST1 $MYSQL_PORT1 $MYSQL_PASSWORD1
run_sql_file $cur/data/db2.regexpr.sql $MYSQL_HOST2 $MYSQL_PORT2 $MYSQL_PASSWORD2
run_sql_tidb 'drop database if exists dtest3;'
Expand Down Expand Up @@ -362,11 +367,11 @@ function test_regexpr_router() {

check_sync_diff $WORK_DIR $cur/conf/regexpr_diff_config.toml

cleanup_process
cleanup_data test3gd8917777
cleanup_data test4s_2022
cleanup_data_upstream test3gd8917777
cleanup_data_upstream test4s_2022
cleanup_process
echo "[$(date)] <<<<<< finish test_regexpr_router >>>>>>"
}

Expand Down Expand Up @@ -582,11 +587,6 @@ function run() {
run_sql_both_source "SET @@global.time_zone = 'SYSTEM';"
}

cleanup_data all_mode
cleanup_data test3gd8917777
cleanup_data test4s_2022
cleanup_data_upstream test3gd8917777
cleanup_data_upstream test4s_2022
# also cleanup dm processes in case of last run failed
cleanup_process $*
run $*
Expand Down

0 comments on commit 8b0ebbb

Please sign in to comment.