aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqrort <qrort@yandex-team.com>2023-06-22 20:20:23 +0300
committerqrort <qrort@yandex-team.com>2023-06-22 20:20:23 +0300
commit209fdadc6ff1cc9613c70e5e4ab328592ae304fa (patch)
tree25419e65aedb26616221e37babbdaea5d8bf6c15
parent39515cc2c95b0491fbde67491acb043c9b4497b2 (diff)
downloadydb-209fdadc6ff1cc9613c70e5e4ab328592ae304fa.tar.gz
source-tree resources paths to relative
-rw-r--r--ydb/tests/functional/postgresql/test_postgres.py8
-rw-r--r--ydb/tests/functional/suite_tests/test_base.py4
2 files changed, 7 insertions, 5 deletions
diff --git a/ydb/tests/functional/postgresql/test_postgres.py b/ydb/tests/functional/postgresql/test_postgres.py
index e95d39f5569..52be1993e37 100644
--- a/ydb/tests/functional/postgresql/test_postgres.py
+++ b/ydb/tests/functional/postgresql/test_postgres.py
@@ -5,14 +5,14 @@ from ydb.tests.library.harness.util import LogLevels
from common import find_sql_tests, diff_sql
-from yatest.common import execute
+import yatest.common
import os
import pytest
import re
-
-DATA_PATH = yatest_common.source_path('ydb/tests/functional/postgresql/cases')
+arcadia_root = yatest.common.source_path('')
+DATA_PATH = os.path.join(arcadia_root, yatest.common.test_source_path('cases'))
def get_unique_path_case(sub_folder, file):
@@ -58,7 +58,7 @@ def execute_binary(binary_name, cmd, wait, join_stderr=False):
stderr_file = stdout_file
if not join_stderr:
stderr_file = open(stderr, 'w')
- process = execute(
+ process = yatest.common.execute(
cmd,
stdin=stdin_file,
stderr=stderr_file,
diff --git a/ydb/tests/functional/suite_tests/test_base.py b/ydb/tests/functional/suite_tests/test_base.py
index 9a6b180cb31..30da3859753 100644
--- a/ydb/tests/functional/suite_tests/test_base.py
+++ b/ydb/tests/functional/suite_tests/test_base.py
@@ -14,6 +14,7 @@ from concurrent import futures
from hamcrest import assert_that, is_, equal_to, raises, none
import ydb.tests.library.common.yatest_common as yatest_common
+from yatest.common import source_path, test_source_path
from ydb.tests.library.harness.kikimr_cluster import kikimr_cluster_factory
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator
@@ -62,7 +63,8 @@ def get_token(length=10):
def get_source_path(*args):
- return yatest_common.source_path(os.path.join("ydb/tests/functional/suite_tests", *args))
+ arcadia_root = source_path('')
+ return os.path.join(arcadia_root, test_source_path(os.path.join(*args)))
def is_empty_line(line):