From 747b80cfd747a032865d8fe170fa11087af0f96d Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Fri, 7 Jul 2023 09:25:12 +0800 Subject: [PATCH] add test check --- tests/system-test/0-others/compatibility.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/system-test/0-others/compatibility.py b/tests/system-test/0-others/compatibility.py index b8623c3bcd..3fcff9b3de 100644 --- a/tests/system-test/0-others/compatibility.py +++ b/tests/system-test/0-others/compatibility.py @@ -151,10 +151,10 @@ class TDTestCase: os.system("LD_LIBRARY_PATH=/usr/lib taos -s 'flush database db4096 '") os.system("LD_LIBRARY_PATH=/usr/lib taos -f 0-others/TS-3131.tsql") - # cmd = f" LD_LIBRARY_PATH={bPath}/build/lib {bPath}/build/bin/taos -h localhost ;" - # tdLog.info(f"new client version connect to old version taosd, commad return value:{cmd}") - # if os.system(cmd) == 0: - # raise Exception("failed to execute system command. cmd: %s" % cmd) + cmd = f" LD_LIBRARY_PATH={bPath}/build/lib {bPath}/build/bin/taos -h localhost ;" + tdLog.info(f"new client version connect to old version taosd, commad return value:{cmd}") + if os.system(cmd) == 0: + raise Exception("failed to execute system command. cmd: %s" % cmd) os.system("pkill taosd") # make sure all the data are saved in disk. self.checkProcessPid("taosd")