Skip to content

Commit

Permalink
[Tasks] cloud/tasks should not depend on cloud/storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Montsev committed Jan 18, 2024
1 parent 4282d4b commit c790f94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 5 additions & 7 deletions cloud/tasks/acceptance_tests/recipe/node_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from yatest.common import process

from cloud.storage.core.tools.common.python.daemon import Daemon
from contrib.ydb.tests.library.harness.daemon import Daemon
from contrib.ydb.tests.library.harness.kikimr_runner import get_unique_path_for_current_test, ensure_path_exists
import contrib.ydb.tests.library.common.yatest_common as yatest_common

Expand Down Expand Up @@ -57,9 +57,7 @@ def __init__(self, config_file, working_dir):
command = [yatest_common.binary_path("cloud/tasks/test/nemesis/nemesis")]
command += ["--cmd", internal_command]

super(Node, self).__init__(
commands=[command],
cwd=working_dir)
super(Node, self).__init__(command=command, cwd=working_dir, timeout=180)


class NodeLauncher:
Expand Down Expand Up @@ -105,11 +103,11 @@ def __init__(self, hostname, idx):
time.sleep(1)
continue

self.__daemon = Node(config_file, working_dir)
self.__node = Node(config_file, working_dir)

def start(self):
self.__daemon.start()
register_process(SERVICE_NAME, self.__daemon.pid)
self.__node.start()
register_process(SERVICE_NAME, self.__node.daemon.process.pid)

@staticmethod
def stop():
Expand Down
1 change: 0 additions & 1 deletion cloud/tasks/acceptance_tests/recipe/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ PY_SRCS(

PEERDIR(
cloud/tasks/test/common
cloud/storage/core/tools/common/python
contrib/ydb/tests/library
library/python/testing/recipe
)
Expand Down

0 comments on commit c790f94

Please sign in to comment.