From ec351227584fa10975f966fee49628739d377fdc Mon Sep 17 00:00:00 2001 From: qupeng Date: Sun, 17 Dec 2023 13:33:16 +0800 Subject: [PATCH] revert something from PR 10139 Signed-off-by: qupeng --- dm/tests/lightning_mode/run.sh | 10 +++++----- dm/tests/tls/run.sh | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dm/tests/lightning_mode/run.sh b/dm/tests/lightning_mode/run.sh index 3c442fccc87..b70b46cc9ff 100755 --- a/dm/tests/lightning_mode/run.sh +++ b/dm/tests/lightning_mode/run.sh @@ -128,10 +128,10 @@ function run() { export GO_FAILPOINTS='' } -#cleanup_data lightning_mode -## also cleanup dm processes in case of last run failed -#cleanup_process $* -#run $* -#cleanup_process $* +cleanup_data lightning_mode +# also cleanup dm processes in case of last run failed +cleanup_process $* +run $* +cleanup_process $* echo "[$(date)] <<<<<< test case $TEST_NAME success! >>>>>>" diff --git a/dm/tests/tls/run.sh b/dm/tests/tls/run.sh index c249db41559..9fa05145d03 100644 --- a/dm/tests/tls/run.sh +++ b/dm/tests/tls/run.sh @@ -384,17 +384,17 @@ function run() { test_source_and_target_with_empty_tlsconfig } -#cleanup_data tls -#cleanup_process -# -#run -# -## kill the tidb with tls -#pkill -hup tidb-server 2>/dev/null || true -#wait_process_exit tidb-server -# -#run_tidb_server 4000 $TIDB_PASSWORD -# -#cleanup_process +cleanup_data tls +cleanup_process + +run + +# kill the tidb with tls +pkill -hup tidb-server 2>/dev/null || true +wait_process_exit tidb-server + +run_tidb_server 4000 $TIDB_PASSWORD + +cleanup_process echo "[$(date)] <<<<<< test case $TEST_NAME success! >>>>>>"