Skip to content

Commit

Permalink
Merge pull request #21999 from taosdata/test/update_package_test_script
Browse files Browse the repository at this point in the history
update package test script
  • Loading branch information
plum-lihui committed Jul 7, 2023
2 parents ab11d20 + bcd1b08 commit b7bf492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packaging/checkPackageRuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@
# dump data out
print("taosdump dump out data")

os.system("taosdump -o /tmp/dumpdata -D test -y -h %s "%serverHost)
os.system("taosdump -o /tmp/dumpdata -D test -h %s "%serverHost)

# drop database of test
print("drop database test")
os.system(" taos -s ' drop database test ;' -h %s "%serverHost)

# dump data in
print("taosdump dump data in")
os.system("taosdump -i /tmp/dumpdata -y -h %s "%serverHost)
os.system("taosdump -i /tmp/dumpdata -h %s "%serverHost)

result = conn.query("SELECT count(*) from test.meters")

Expand Down
2 changes: 1 addition & 1 deletion packaging/testpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function wgetFile {
file=$1
versionPath=$2
sourceP=$3
nasServerIP="192.168.1.131"
nasServerIP="192.168.1.213"
packagePath="/nas/TDengine/v${versionPath}/${verMode}"
if [ -f ${file} ];then
echoColor YD "${file} already exists ,it will delete it and download it again "
Expand Down

0 comments on commit b7bf492

Please sign in to comment.