Skip to content

Commit

Permalink
Get path to CLI binary from env in load tests (#13600)
Browse files Browse the repository at this point in the history
  • Loading branch information
iddqdex authored Jan 20, 2025
1 parent fdde655 commit 2b12185
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ydb/tests/functional/tpc/large/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ REQUIREMENTS(ram:16)

ENV(YDB_ENABLE_COLUMN_TABLES="true")
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")
ENV(YDB_CLI_BINARY="ydb/apps/ydb/ydb")
ENV(NO_KUBER_LOGS="yes")

PEERDIR(
Expand Down
1 change: 1 addition & 0 deletions ydb/tests/functional/tpc/medium/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ REQUIREMENTS(ram:16)

ENV(YDB_ENABLE_COLUMN_TABLES="true")
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")
ENV(YDB_CLI_BINARY="ydb/apps/ydb/ydb")
ENV(NO_KUBER_LOGS="yes")

PEERDIR(
Expand Down
2 changes: 1 addition & 1 deletion ydb/tests/olap/lib/ydb_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_cli_command() -> list[str]:
if cli == 'git':
return [yatest.common.work_path('ydb')] + args
elif cli == 'main':
return [yatest.common.binary_path('ydb/apps/ydb/ydb')] + args
return [yatest.common.binary_path(os.getenv('YDB_CLI_BINARY'))] + args
else:
return [cli] + args

Expand Down
2 changes: 2 additions & 0 deletions ydb/tests/olap/load/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ PY3TEST()

SIZE(LARGE)

ENV(YDB_CLI_BINARY="ydb/apps/ydb/ydb")

TEST_SRCS (
test_clickbench.py
test_tpcds.py
Expand Down

0 comments on commit 2b12185

Please sign in to comment.