未验证 提交 2f09d0e9 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

test(connector): fix connector/lua.py (#11525)

* fix: remove stream api

[TD-14360]

* fix: update examples/rust to remove stream api

[TD-14360]

* test: fix lua.py

[TD-14360]

* add more basic cases into pytest/smoketest.sh

* test(connector): fix connector/lua.py

* disable lua.py from smoketest
上级 9b177544
#!/bin/bash
lua_header_installed=`apt-cache policy liblua5.3-dev|grep Installed|grep none > /dev/null; echo $?`
if [ "$lua_header_installed" = "0" ]; then
echo "If need, please input root password to install liblua5.3-dev for build the connector.."
......
......@@ -39,8 +39,8 @@ class TDTestCase:
return buildPath
def isLuaInstalled(self):
if not which('lua'):
tdLog.exit("Lua not found!")
if not which('lua5.3'):
tdLog.log("Lua 5.3 not found!")
return False
else:
return True
......@@ -62,7 +62,8 @@ class TDTestCase:
currentPath = os.getcwd()
os.chdir(targetPath)
os.system('./build.sh')
os.system('lua test.lua')
os.system('lua5.3 test.lua')
os.chdir(currentPath)
def stop(self):
tdSql.close()
......
......@@ -58,4 +58,4 @@ python3 ./test.py $1 -f client/client.py
python3 ./test.py $1 -s && sleep 1
# connector
python3 ./test.py $1 -f connector/lua.py
# python3 ./test.py $1 -f connector/lua.py
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册