test: ci not pass , modify path
This commit is contained in:
parent
cec2be0435
commit
cd99a611ac
|
@ -218,16 +218,14 @@ class TDTestCase:
|
||||||
self.conn = conn
|
self.conn = conn
|
||||||
|
|
||||||
# init cluster path
|
# init cluster path
|
||||||
projDir = __file__
|
selfPath = os.path.dirname(os.path.realpath(__file__))
|
||||||
pos = projDir.find("tests")
|
if ("community" in selfPath):
|
||||||
if pos != -1:
|
projPath = selfPath[:selfPath.find("community")]
|
||||||
self.projDir = projDir[:pos]
|
|
||||||
else:
|
else:
|
||||||
self.projDir = __file__
|
projPath = selfPath[:selfPath.find("tests")]
|
||||||
self.projDir += "sim/"
|
self.projDir += f"{projPath}sim/"
|
||||||
|
tdLog.info(f" init projPath={projPath}")
|
||||||
|
|
||||||
# udf path
|
|
||||||
self.udf_path = os.path.dirname(os.path.realpath(__file__)) + "/udfpy"
|
|
||||||
self.column_dict = {
|
self.column_dict = {
|
||||||
'ts': 'timestamp',
|
'ts': 'timestamp',
|
||||||
'col1': 'tinyint',
|
'col1': 'tinyint',
|
||||||
|
|
Loading…
Reference in New Issue