Browse Source

clickbench path to relative

qrort 1 year ago
parent
commit
9eca6f9e5a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ydb/tests/functional/clickbench/test.py

+ 2 - 1
ydb/tests/functional/clickbench/test.py

@@ -28,7 +28,8 @@ def run_cli(argv):
 
 
 
 
 def get_queries(filename):
 def get_queries(filename):
-    path = os.path.join(yatest.common.source_path("ydb/tests/functional/clickbench"), filename)
+    arcadia_root = yatest.common.source_path('')
+    path = os.path.join(arcadia_root, yatest.common.test_source_path(''), filename)
     with open(path, "r") as r:
     with open(path, "r") as r:
         data = r.read()
         data = r.read()
     for query in data.split('\n'):
     for query in data.split('\n'):