From cd97d821165a08ddf45d5fef75a48fcca82934e2 Mon Sep 17 00:00:00 2001 From: plum-lihui Date: Sat, 16 Apr 2022 10:18:21 +0800 Subject: [PATCH] [test: stop all dnodes when sim scripte return success] --- tests/script/tsim/db/alter_option.sim | 4 +++- tests/script/tsim/db/create_all_options.sim | 4 +++- tests/script/tsim/insert/backquote.sim | 2 +- tests/script/tsim/insert/null.sim | 2 +- tests/script/tsim/parser/fourArithmetic-basic.sim | 2 +- tests/script/tsim/show/basic.sim | 3 ++- tests/script/tsim/stable/dnode3.sim | 3 +++ 7 files changed, 14 insertions(+), 6 deletions(-) diff --git a/tests/script/tsim/db/alter_option.sim b/tests/script/tsim/db/alter_option.sim index 9c7b2f5424..e9795bd8d2 100644 --- a/tests/script/tsim/db/alter_option.sim +++ b/tests/script/tsim/db/alter_option.sim @@ -350,4 +350,6 @@ sql_error alter database db precision 'ns' sql_error alter database db precision 'ys' sql_error alter database db prec 'xs' -#system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode2 -s stop -x SIGINT +system sh/exec.sh -n dnode3 -s stop -x SIGINT diff --git a/tests/script/tsim/db/create_all_options.sim b/tests/script/tsim/db/create_all_options.sim index 4dda6cd00f..2baba8fb74 100644 --- a/tests/script/tsim/db/create_all_options.sim +++ b/tests/script/tsim/db/create_all_options.sim @@ -484,4 +484,6 @@ sql drop database db sql_error create database db STREAM_MODE 2 sql_error create database db STREAM_MODE -1 -#system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode2 -s stop -x SIGINT +system sh/exec.sh -n dnode3 -s stop -x SIGINT diff --git a/tests/script/tsim/insert/backquote.sim b/tests/script/tsim/insert/backquote.sim index 819b1aea13..ba50e70afa 100644 --- a/tests/script/tsim/insert/backquote.sim +++ b/tests/script/tsim/insert/backquote.sim @@ -353,4 +353,4 @@ while $dbCnt < 2 endw -#system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode1 -s stop -x SIGINT diff --git a/tests/script/tsim/insert/null.sim b/tests/script/tsim/insert/null.sim index fab5335ac5..98a494c960 100644 --- a/tests/script/tsim/insert/null.sim +++ b/tests/script/tsim/insert/null.sim @@ -471,4 +471,4 @@ endi # return -1 #endi -#system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode1 -s stop -x SIGINT diff --git a/tests/script/tsim/parser/fourArithmetic-basic.sim b/tests/script/tsim/parser/fourArithmetic-basic.sim index ebe20924be..eee294dc80 100644 --- a/tests/script/tsim/parser/fourArithmetic-basic.sim +++ b/tests/script/tsim/parser/fourArithmetic-basic.sim @@ -138,4 +138,4 @@ if $loop_test == 0 then goto loop_test_pos endi -#system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode1 -s stop -x SIGINT diff --git a/tests/script/tsim/show/basic.sim b/tests/script/tsim/show/basic.sim index 0c0670ff7f..ca6cd1c11a 100644 --- a/tests/script/tsim/show/basic.sim +++ b/tests/script/tsim/show/basic.sim @@ -212,4 +212,5 @@ if $rows != 3 then return -1 endi -#system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode2 -s stop -x SIGINT \ No newline at end of file diff --git a/tests/script/tsim/stable/dnode3.sim b/tests/script/tsim/stable/dnode3.sim index e388bd9b31..706c4aa499 100644 --- a/tests/script/tsim/stable/dnode3.sim +++ b/tests/script/tsim/stable/dnode3.sim @@ -211,3 +211,6 @@ if $rows != 2 then endi system sh/exec.sh -n dnode1 -s stop -x SIGINT +system sh/exec.sh -n dnode2 -s stop -x SIGINT +system sh/exec.sh -n dnode3 -s stop -x SIGINT +system sh/exec.sh -n dnode4 -s stop -x SIGINT