From d6d5fd8b3c43e34145ebd8ba736136f42115340d Mon Sep 17 00:00:00 2001 From: tkns_zhao Date: Tue, 26 Mar 2024 02:49:16 +0000 Subject: [PATCH] =?UTF-8?q?update=20testcases/system-test/system-integrati?= =?UTF-8?q?on/os-basic/common/mariadb=5Fremote.=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=EF=BC=8C=E6=AD=A4=E8=84=9A=E6=9C=AC=E8=A2=AB?= =?UTF-8?q?=E7=94=A8=E4=BE=8Boe=5Ftest=5Fserver=5Fmariadb=5Fcompatibilty.s?= =?UTF-8?q?h=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tkns_zhao --- .../os-basic/common/mariadb_remote | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/testcases/system-test/system-integration/os-basic/common/mariadb_remote b/testcases/system-test/system-integration/os-basic/common/mariadb_remote index c7f9f944d..05788d0f5 100755 --- a/testcases/system-test/system-integration/os-basic/common/mariadb_remote +++ b/testcases/system-test/system-integration/os-basic/common/mariadb_remote @@ -19,19 +19,16 @@ expect -c " log_file testlog set timeout 10 - spawn mysql -h ${NODE1_IPV4} -u root -p - expect { - \"Enter*\" { send \"${NODE1_PASSWORD}\r\"; - "Maria*" { send "create database test;\r" - expect "Maria*" { send "use test;\r"} - expect "Maria*" { send "create table testtable(id int(3), name char(8));\r"} - expect "Maria*" { send "insert into testtable values(\'01\',\'zhang\');\r"} - expect "Maria*" { send "insert into testtable values(\'02\',\'lisi\');\r"} - expect "Maria*" { send "select * from testtable;\r"} - expect "Maria*" { send "delete from testtable where id=\'01\';\r"} - expect "Maria*" { send "select * from testtable;\r"} - expect "Maria*" { send "exit\r"} -} -} + spawn mysql -h local_ip -u root -p + expect \"Enter*\" { send \"local_password\r\"} + expect \"Maria*\" { send \"create database test;\r\"} + expect \"Maria*\" { send \"use test;\r\"} + expect \"Maria*\" { send \"create table testtable(id int(3), name char(8));\r\"} + expect \"Maria*\" { send \"insert into testtable values(\'01\',\'zhang\');\r\"} + expect \"Maria*\" { send \"insert into testtable values(\'02\',\'lisi\');\r\"} + expect \"Maria*\" { send \"select * from testtable;\r\"} + expect \"Maria*\" { send \"delete from testtable where id=\'01\';\r\"} + expect \"Maria*\" { send \"select * from testtable;\r\"} + expect \"Maria*\" { send \"exit\r\"} expect eof " -- Gitee