diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-09-12 14:27:34 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-09-12 14:43:06 +0300 |
commit | 86a0092bd5411a28c91aea3c0969796d5d9a843c (patch) | |
tree | 91b8558ade0590601b02a2387dca2bbc981dab79 | |
parent | 87993d634e37f557701366dac12344eedc608a38 (diff) | |
download | ydb-86a0092bd5411a28c91aea3c0969796d5d9a843c.tar.gz |
Enable running with paths from env
-rw-r--r-- | ydb/library/yql/tests/common/udf_test/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/library/yql/tests/common/udf_test/test.py b/ydb/library/yql/tests/common/udf_test/test.py index dffe4cd381..117a31ce51 100644 --- a/ydb/library/yql/tests/common/udf_test/test.py +++ b/ydb/library/yql/tests/common/udf_test/test.py @@ -14,7 +14,7 @@ import yatest.common project_path = yatest.common.context.project_path SOURCE_PATH = yql_utils.yql_source_path((project_path + '/cases').replace('\\', '/')) DATA_PATH = yatest.common.output_path('cases') -ASTDIFF_PATH = yql_utils.yql_binary_path('ydb/library/yql/tools/astdiff/astdiff') +ASTDIFF_PATH = yql_utils.yql_binary_path(os.getenv('YQL_ASTDIFF_PATH') or 'ydb/library/yql/tools/astdiff/astdiff') def pytest_generate_tests(metafunc): @@ -82,7 +82,7 @@ def test(case): if "YA_TEST_RUNNER" in extra_env: del extra_env["YA_TEST_RUNNER"] - yqlrun_res = YQLRun(udfs_dir=udfs_dir, prov='yt', use_sql2yql=False, cfg_dir='ydb/library/yql/cfg/udf_test').yql_exec( + yqlrun_res = YQLRun(udfs_dir=udfs_dir, prov='yt', use_sql2yql=False, cfg_dir=os.getenv('YQL_CONFIG_DIR') or 'ydb/library/yql/cfg/udf_test').yql_exec( program=program, run_sql=True, tables=in_tables, |