Skip to content

Commit

Permalink
test: fix stop without prompt
Browse files Browse the repository at this point in the history
Since `stop` command needs confirmation by default, new tests was failed
waiting indefinitely for confirmation.

After the patch `stop` is executed with `-y` flag to ignore the
confirmation request.

Follow up #916
  • Loading branch information
themilchenko authored and oleg-jukovec committed Sep 3, 2024
1 parent 75d732b commit b215c95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_replicaset_cconfig_roles_remove(
start_application(tt_cmd, tmpdir_with_cfg, app_name, instances)

if stop_instance:
stop_cmd = [tt_cmd, "stop", f"{app_name}:{stop_instance}"]
stop_cmd = [tt_cmd, "stop", "-y", f"{app_name}:{stop_instance}"]
rc, _ = run_command_and_get_output(stop_cmd, cwd=tmpdir_with_cfg)
assert rc == 0

Expand Down

0 comments on commit b215c95

Please sign in to comment.