88 dump_table_yson , get_gateway_cfg_suffix , do_custom_query_check , normalize_result , \
99 stable_result_file , stable_table_file , is_with_final_result_issues , log
1010
11- from test_utils import get_config , DATA_PATH
11+ from test_utils import get_config
1212from test_file_common import run_file , run_file_no_cache
1313
1414ASTDIFF_PATH = yql_binary_path ('yql/essentials/tools/astdiff/astdiff' )
1515DQRUN_PATH = yql_binary_path ('ydb/library/yql/tools/dqrun/dqrun' )
16-
16+ DATA_PATH = yatest . common . source_path ( 'yt/yql/tests/sql/suites' )
1717
1818def run_test (suite , case , cfg , tmpdir , what , yql_http_file_server ):
1919 if get_gateway_cfg_suffix () != '' and what != 'Results' :
2020 pytest .skip ('non-trivial gateways.conf' )
2121
22- config = get_config (suite , case , cfg )
22+ config = get_config (suite , case , cfg , data_path = DATA_PATH )
2323
2424 program_sql = os .path .join (DATA_PATH , suite , '%s.sql' % case )
2525 with codecs .open (program_sql , encoding = 'utf-8' ) as program_file_descr :
@@ -41,17 +41,17 @@ def run_test(suite, case, cfg, tmpdir, what, yql_http_file_server):
4141 if is_with_final_result_issues (config ):
4242 extra_args += ["--with-final-issues" ]
4343
44- (res , tables_res ) = run_file ('dq' , suite , case , cfg , config , yql_http_file_server , DQRUN_PATH , extra_args = extra_args )
44+ (res , tables_res ) = run_file ('dq' , suite , case , cfg , config , yql_http_file_server , DQRUN_PATH , extra_args = extra_args , data_path = DATA_PATH )
4545
4646 if what == 'Results' or force_blocks :
4747 if not xfail :
4848 if force_blocks :
4949 yqlrun_res , yqlrun_tables_res = run_file_no_cache ('dq' , suite , case , cfg , config , yql_http_file_server , DQRUN_PATH , \
50- extra_args = ["--emulate-yt" ], force_blocks = True )
50+ extra_args = ["--emulate-yt" ], force_blocks = True , data_path = DATA_PATH )
5151 dq_result_name = 'Scalar'
5252 yqlrun_result_name = 'Block'
5353 else :
54- yqlrun_res , yqlrun_tables_res = run_file_no_cache ('yt' , suite , case , cfg , config , yql_http_file_server )
54+ yqlrun_res , yqlrun_tables_res = run_file_no_cache ('yt' , suite , case , cfg , config , yql_http_file_server , data_path = DATA_PATH )
5555 dq_result_name = 'DQFILE'
5656 yqlrun_result_name = 'YQLRUN'
5757
0 commit comments