test: add install taospyudf
This commit is contained in:
parent
70043090dc
commit
9b729c289b
|
@ -20,6 +20,7 @@ from util.sqlset import *
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import os
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
class PerfDB:
|
class PerfDB:
|
||||||
|
@ -414,8 +415,17 @@ class TDTestCase:
|
||||||
tdSql.execute(sql)
|
tdSql.execute(sql)
|
||||||
tdLog.info(sql)
|
tdLog.info(sql)
|
||||||
|
|
||||||
|
def install_taospy(self):
|
||||||
|
tdLog.info("install taospyudf...")
|
||||||
|
packs = ["taospyudf"]
|
||||||
|
for pack in packs:
|
||||||
|
subprocess.check_call([sys.executable, '-m', 'pip', 'install', pack])
|
||||||
|
tdLog.info("install taospyudf successfully.")
|
||||||
|
|
||||||
# run
|
# run
|
||||||
def run(self):
|
def run(self):
|
||||||
|
self.install_taospy()
|
||||||
|
|
||||||
# var
|
# var
|
||||||
stable = "meters"
|
stable = "meters"
|
||||||
tbname = "d"
|
tbname = "d"
|
||||||
|
|
Loading…
Reference in New Issue