From 85440dd6c986280a5c3eac59b98baebfffb22d8f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 May 2021 16:03:38 +0800 Subject: [PATCH] fix new test --- tests/lightning_routes/run.sh | 2 +- tests/lightning_row-format-v2/run.sh | 2 +- tests/lightning_tool_135/run.sh | 2 +- tests/lightning_tool_1420/run.sh | 2 +- tests/lightning_tool_1472/run.sh | 2 +- tests/lightning_tool_241/run.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/lightning_routes/run.sh b/tests/lightning_routes/run.sh index efe801dc8..f890fe7f2 100755 --- a/tests/lightning_routes/run.sh +++ b/tests/lightning_routes/run.sh @@ -8,7 +8,7 @@ run_sql 'DROP DATABASE IF EXISTS routes_a0;' run_sql 'DROP DATABASE IF EXISTS routes_a1;' run_sql 'DROP DATABASE IF EXISTS routes_b;' -run_lightning +echo yes | run_lightning run_sql 'SELECT count(1), sum(x) FROM routes_b.u;' check_contains 'count(1): 4' diff --git a/tests/lightning_row-format-v2/run.sh b/tests/lightning_row-format-v2/run.sh index ea86d7ee0..2cc9f7d24 100644 --- a/tests/lightning_row-format-v2/run.sh +++ b/tests/lightning_row-format-v2/run.sh @@ -14,7 +14,7 @@ fi run_sql 'DROP DATABASE IF EXISTS rowformatv2;' -run_lightning +echo yes | run_lightning run_sql 'SELECT count(1) FROM rowformatv2.t1;' check_contains 'count(1): 50' diff --git a/tests/lightning_tool_135/run.sh b/tests/lightning_tool_135/run.sh index 3e7a52776..22e34e503 100755 --- a/tests/lightning_tool_135/run.sh +++ b/tests/lightning_tool_135/run.sh @@ -18,7 +18,7 @@ set -eu run_sql 'DROP DATABASE IF EXISTS tool_135;' -run_lightning +echo yes | run_lightning echo 'Import finished' run_sql 'SELECT count(a), sum(a), min(a), max(a) FROM tool_135.bar1;' diff --git a/tests/lightning_tool_1420/run.sh b/tests/lightning_tool_1420/run.sh index f8ee83b12..3022e7793 100755 --- a/tests/lightning_tool_1420/run.sh +++ b/tests/lightning_tool_1420/run.sh @@ -19,6 +19,6 @@ set -eu run_sql 'DROP DATABASE IF EXISTS `EE1420`;' -run_lightning +echo yes | run_lightning run_sql 'SELECT `ROLE_ID` FROM `EE1420`.`pt_role`;' check_contains 'ROLE_ID: 1' diff --git a/tests/lightning_tool_1472/run.sh b/tests/lightning_tool_1472/run.sh index 050948edd..d289befe4 100755 --- a/tests/lightning_tool_1472/run.sh +++ b/tests/lightning_tool_1472/run.sh @@ -19,7 +19,7 @@ set -eu run_sql 'drop database if exists EE1472;' -run_lightning +echo yes | run_lightning run_sql 'insert into EE1472.pk values ();' run_sql 'select count(a), max(a) from EE1472.pk;' diff --git a/tests/lightning_tool_241/run.sh b/tests/lightning_tool_241/run.sh index 63fe44401..f28097045 100755 --- a/tests/lightning_tool_241/run.sh +++ b/tests/lightning_tool_241/run.sh @@ -19,7 +19,7 @@ set -eu run_sql 'DROP DATABASE IF EXISTS qyjc;' -run_lightning +echo yes | run_lightning echo 'Import finished' # Verify all data are imported