@@ -52,7 +52,7 @@ def test_running_base_functionality(tt_cmd, tmpdir_with_cfg):
52
52
assert status_info ["test_app" ]["MODE" ] == "RO"
53
53
54
54
# Stop the Instance.
55
- stop_cmd = [tt_cmd , "stop" , "test_app" ]
55
+ stop_cmd = [tt_cmd , "stop" , "-y" , " test_app" ]
56
56
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = tmpdir )
57
57
assert stop_rc == 0
58
58
assert re .search (r"The Instance test_app \(PID = \d+\) has been terminated." , stop_out )
@@ -117,7 +117,7 @@ def test_restart(tt_cmd, tmpdir_with_cfg):
117
117
assert status_out ["test_app" ]["STATUS" ] == "RUNNING"
118
118
119
119
# Stop the new Instance.
120
- stop_cmd = [tt_cmd , "stop" , "test_app" ]
120
+ stop_cmd = [tt_cmd , "stop" , "-y" , " test_app" ]
121
121
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = tmpdir )
122
122
assert stop_rc == 0
123
123
assert re .search (r"The Instance test_app \(PID = \d+\) has been terminated." , stop_out )
@@ -165,7 +165,7 @@ def test_logrotate(tt_cmd, tmpdir_with_cfg):
165
165
assert "reopened" in f .read ()
166
166
167
167
# Stop the Instance.
168
- stop_cmd = [tt_cmd , "stop" , "test_env_app" ]
168
+ stop_cmd = [tt_cmd , "stop" , "-y" , " test_env_app" ]
169
169
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = tmpdir )
170
170
assert stop_rc == 0
171
171
assert re .search (r"The Instance test_env_app \(PID = \d+\) has been terminated." , stop_out )
@@ -222,7 +222,7 @@ def test_clean(tt_cmd, tmpdir_with_cfg):
222
222
assert re .search (r"instance `test_data_app` must be stopped" , clean_out )
223
223
224
224
# Stop the Instance.
225
- stop_cmd = [tt_cmd , "stop" , "test_data_app" ]
225
+ stop_cmd = [tt_cmd , "stop" , "-y" , " test_data_app" ]
226
226
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = tmpdir )
227
227
assert stop_rc == 0
228
228
assert re .search (r"The Instance test_data_app \(PID = \d+\) has been terminated\." , stop_out )
@@ -282,7 +282,7 @@ def test_running_base_functionality_working_dir_app(tt_cmd):
282
282
assert status_out [f"app:{ instName } " ]["STATUS" ] == "RUNNING"
283
283
284
284
# Stop the application.
285
- stop_cmd = [tt_cmd , "stop" , "app" ]
285
+ stop_cmd = [tt_cmd , "stop" , "-y" , " app" ]
286
286
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = test_app_path )
287
287
assert stop_rc == 0
288
288
assert re .search (r"The Instance app:(router|master|replica|stateboard) \(PID = \d+\) "
@@ -334,7 +334,7 @@ def test_running_base_functionality_working_dir_app_no_app_name(tt_cmd):
334
334
assert status_out [f"app:{ instName } " ]["STATUS" ] == "RUNNING"
335
335
336
336
# Stop the application.
337
- stop_cmd = [tt_cmd , "stop" ]
337
+ stop_cmd = [tt_cmd , "stop" , "-y" ]
338
338
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = test_app_path )
339
339
assert stop_rc == 0
340
340
assert re .search (r"The Instance app:(router|master|replica|stateboard) \(PID = \d+\) "
@@ -384,7 +384,7 @@ def test_running_instance_from_multi_inst_app(tt_cmd):
384
384
assert status_out [f"app:{ inst } " ]["STATUS" ] == "NOT RUNNING"
385
385
386
386
# Stop the Instance.
387
- stop_cmd = [tt_cmd , "stop" , "app:router" ]
387
+ stop_cmd = [tt_cmd , "stop" , "-y" , " app:router" ]
388
388
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = test_app_path )
389
389
assert stop_rc == 0
390
390
assert re .search (r"The Instance app:router \(PID = \d+\) has been terminated." , stop_out )
@@ -562,7 +562,7 @@ def test_no_args_usage(tt_cmd):
562
562
assert re .search (r"app2: logs has been rotated. PID: \d+." , status_out )
563
563
564
564
# Stop all applications.
565
- stop_cmd = [tt_cmd , "stop" ]
565
+ stop_cmd = [tt_cmd , "stop" , "-y" ]
566
566
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = test_app_path )
567
567
assert stop_rc == 0
568
568
assert re .search (r"The Instance app1:(router|master|replica) \(PID = \d+\) "
@@ -603,7 +603,7 @@ def test_running_env_variables(tt_cmd, tmpdir_with_cfg):
603
603
assert status_out ["test_env_app" ]["STATUS" ] == "RUNNING"
604
604
605
605
# Stop the Instance.
606
- stop_cmd = [tt_cmd , "stop" , "test_env_app" ]
606
+ stop_cmd = [tt_cmd , "stop" , "-y" , " test_env_app" ]
607
607
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = tmpdir )
608
608
assert stop_rc == 0
609
609
assert re .search (r"The Instance test_env_app \(PID = \d+\) has been terminated." , stop_out )
@@ -661,7 +661,7 @@ def test_running_tarantoolctl_layout(tt_cmd, tmp_path):
661
661
assert status_out ["test_app" ]["STATUS" ] == "RUNNING"
662
662
663
663
# Stop the Instance.
664
- stop_cmd = [tt_cmd , "stop" , "test_app" ]
664
+ stop_cmd = [tt_cmd , "stop" , "-y" , " test_app" ]
665
665
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = tmp_path )
666
666
assert status_rc == 0
667
667
assert re .search (r"The Instance test_app \(PID = \d+\) has been terminated." , stop_out )
@@ -710,7 +710,7 @@ def test_running_start(tt_cmd):
710
710
for instName in instances :
711
711
assert status_out [f'app:{ instName } ' ]["STATUS" ] == "RUNNING"
712
712
713
- status_cmd = [tt_cmd , "stop" , "app:router" ]
713
+ status_cmd = [tt_cmd , "stop" , "-y" , " app:router" ]
714
714
status_rc , stop_out = run_command_and_get_output (status_cmd , cwd = test_app_path )
715
715
assert status_rc == 0
716
716
assert re .search (r"The Instance app:router \(PID = \d+\) "
@@ -751,7 +751,7 @@ def test_running_start(tt_cmd):
751
751
assert status_out [f'app:{ instName } ' ]["STATUS" ] == "RUNNING"
752
752
753
753
# Stop all applications.
754
- stop_cmd = [tt_cmd , "stop" ]
754
+ stop_cmd = [tt_cmd , "stop" , "-y" ]
755
755
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = test_app_path )
756
756
assert status_rc == 0
757
757
assert re .search (r"The Instance app:(router|master|replica|stateboard) \(PID = \d+\) "
@@ -814,7 +814,7 @@ def rename():
814
814
assert status_out [f"mi_app:{ inst } " ]["STATUS" ] == "RUNNING"
815
815
816
816
# Stop the Instance.
817
- stop_cmd = [tt_cmd , "stop" , "mi_app" ]
817
+ stop_cmd = [tt_cmd , "stop" , "-y" , " mi_app" ]
818
818
stop_rc , stop_out = run_command_and_get_output (stop_cmd , cwd = test_env_path )
819
819
assert stop_rc == 0
820
820
assert re .search (r"The Instance mi_app:router \(PID = \d+\) has been terminated." ,
0 commit comments