Skip to content

Commit

Permalink
fix: taosdump old test
Browse files Browse the repository at this point in the history
  • Loading branch information
sangshuduo committed Jun 8, 2023
1 parent f471f17 commit c4c755a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions tests/taosdump/old/taosdumpTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def run(self):
else:
tdLog.info("taosdump found: %s" % binPath)

os.system("%s -y --databases db -o ./taosdumptest/tmp1" % binPath)
os.system("%s -y --databases db1 -o ./taosdumptest/tmp2" % binPath)
os.system("%s --databases db -o ./taosdumptest/tmp1" % binPath)
os.system("%s --databases db1 -o ./taosdumptest/tmp2" % binPath)

tdSql.execute("drop database db")
tdSql.execute("drop database db1")
Expand Down Expand Up @@ -190,7 +190,7 @@ def run(self):
tdSql.query("show stables")
tdSql.checkRows(2)
os.system(
"%s -y --databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1"
"%s --databases db12312313231231321312312312_323 -o ./taosdumptest/tmp1"
% binPath
)
tdSql.execute("drop database db12312313231231321312312312_323")
Expand Down
6 changes: 3 additions & 3 deletions tests/taosdump/old/taosdumpTest2.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def run(self):
tdSql.query("show databases")
tdSql.checkRows(2)

os.system("%s -i ./taosdumptest/tmp -y" % binPath)
os.system("%s -i ./taosdumptest/tmp " % binPath)

tdSql.query("show databases")
tdSql.checkRows(3)
Expand Down Expand Up @@ -137,13 +137,13 @@ def run(self):
os.system("rm ./taosdumptest/tmp/*.sql")
os.system("rm ./taosdumptest/tmp/*.avro*")
os.system("rm -rf ./taosdumptest/tmp/taosdump.*")
os.system("%s -D test -o ./taosdumptest/tmp -y" % binPath)
os.system("%s -D test -o ./taosdumptest/tmp " % binPath)

tdSql.execute("drop database test")
tdSql.query("show databases")
tdSql.checkRows(3)

os.system("%s -i ./taosdumptest/tmp -y" % binPath)
os.system("%s -i ./taosdumptest/tmp " % binPath)

tdSql.execute("use test")
tdSql.query("show stables")
Expand Down
18 changes: 9 additions & 9 deletions tests/taosdump/old/taosdumpTestNanoSupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ def run(self):

# dump all data

os.system("%s -y -g --databases timedb1 -o ./taosdumptest/dumptmp1" % binPath)
os.system("%s -g --databases timedb1 -o ./taosdumptest/dumptmp1" % binPath)

# dump part data with -S -E
os.system(
"%s -y -g --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 "
"%s -g --databases timedb1 -S 1625068810000000000 -E 1625068860000000000 -o ./taosdumptest/dumptmp2 "
% binPath
)
os.system(
"%s -y -g --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 "
"%s -g --databases timedb1 -S 1625068810000000000 -o ./taosdumptest/dumptmp3 "
% binPath
)

Expand Down Expand Up @@ -203,14 +203,14 @@ def run(self):

self.createdb(precision="us")

os.system("%s -y -g --databases timedb1 -o ./taosdumptest/dumptmp1" % binPath)
os.system("%s -g --databases timedb1 -o ./taosdumptest/dumptmp1" % binPath)

os.system(
"%s -y -g --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 "
"%s -g --databases timedb1 -S 1625068810000000 -E 1625068860000000 -o ./taosdumptest/dumptmp2 "
% binPath
)
os.system(
"%s -y -g --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 "
"%s -g --databases timedb1 -S 1625068810000000 -o ./taosdumptest/dumptmp3 "
% binPath
)

Expand Down Expand Up @@ -265,14 +265,14 @@ def run(self):

self.createdb(precision="ms")

os.system("%s -y -g --databases timedb1 -o ./taosdumptest/dumptmp1" % binPath)
os.system("%s -g --databases timedb1 -o ./taosdumptest/dumptmp1" % binPath)

os.system(
"%s -y -g --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 "
"%s -g --databases timedb1 -S 1625068810000 -E 1625068860000 -o ./taosdumptest/dumptmp2 "
% binPath
)
os.system(
"%s -y -g --databases timedb1 -S 1625068810000 -o ./taosdumptest/dumptmp3 "
"%s -g --databases timedb1 -S 1625068810000 -o ./taosdumptest/dumptmp3 "
% binPath
)

Expand Down

0 comments on commit c4c755a

Please sign in to comment.