1010from api .cas import casadm
1111from api .cas .casadm_params import OutputFormat
1212from api .cas .cli_help_messages import *
13- from api .cas .cli_messages import check_stderr_msg , check_stdout_msg
13+ from api .cas .cli_messages import check_stderr_msg_all , check_stdout_msg_all
1414from core .test_run import TestRun
1515
1616
@@ -24,80 +24,80 @@ def test_cli_help(shortcut):
2424 """
2525 TestRun .LOGGER .info ("Run 'help' for every 'casadm' command." )
2626 output = casadm .help (shortcut )
27- check_stdout_msg (output , casadm_help )
27+ check_stdout_msg_all (output , casadm_help )
2828
2929 output = TestRun .executor .run ("casadm" + (" -S" if shortcut else " --start-cache" )
3030 + (" -H" if shortcut else " --help" ))
31- check_stdout_msg (output , start_cache_help )
31+ check_stdout_msg_all (output , start_cache_help )
3232
3333 output = TestRun .executor .run ("casadm" + (" -T" if shortcut else " --stop-cache" )
3434 + (" -H" if shortcut else " --help" ))
35- check_stdout_msg (output , stop_cache_help )
35+ check_stdout_msg_all (output , stop_cache_help )
3636
3737 output = TestRun .executor .run ("casadm" + (" -X" if shortcut else " --set-param" )
3838 + (" -H" if shortcut else " --help" ))
39- check_stdout_msg (output , set_params_help )
39+ check_stdout_msg_all (output , set_params_help )
4040
4141 output = TestRun .executor .run ("casadm" + (" -G" if shortcut else " --get-param" )
4242 + (" -H" if shortcut else " --help" ))
43- check_stdout_msg (output , get_params_help )
43+ check_stdout_msg_all (output , get_params_help )
4444
4545 output = TestRun .executor .run ("casadm" + (" -Q" if shortcut else " --set-cache-mode" )
4646 + (" -H" if shortcut else " --help" ))
47- check_stdout_msg (output , set_cache_mode_help )
47+ check_stdout_msg_all (output , set_cache_mode_help )
4848
4949 output = TestRun .executor .run ("casadm" + (" -A" if shortcut else " --add-core" )
5050 + (" -H" if shortcut else " --help" ))
51- check_stdout_msg (output , add_core_help )
51+ check_stdout_msg_all (output , add_core_help )
5252
5353 output = TestRun .executor .run ("casadm" + (" -R" if shortcut else " --remove-core" )
5454 + (" -H" if shortcut else " --help" ))
55- check_stdout_msg (output , remove_core_help )
55+ check_stdout_msg_all (output , remove_core_help )
5656
5757 output = TestRun .executor .run ("casadm" + " --remove-detached"
5858 + (" -H" if shortcut else " --help" ))
59- check_stdout_msg (output , remove_detached_help )
59+ check_stdout_msg_all (output , remove_detached_help )
6060
6161 output = TestRun .executor .run ("casadm" + (" -L" if shortcut else " --list-caches" )
6262 + (" -H" if shortcut else " --help" ))
63- check_stdout_msg (output , list_help )
63+ check_stdout_msg_all (output , list_help )
6464
6565 output = TestRun .executor .run ("casadm" + (" -P" if shortcut else " --stats" )
6666 + (" -H" if shortcut else " --help" ))
67- check_stdout_msg (output , stats_help )
67+ check_stdout_msg_all (output , stats_help )
6868
6969 output = TestRun .executor .run ("casadm" + (" -Z" if shortcut else " --reset-counters" )
7070 + (" -H" if shortcut else " --help" ))
71- check_stdout_msg (output , reset_counters_help )
71+ check_stdout_msg_all (output , reset_counters_help )
7272
7373 output = TestRun .executor .run ("casadm" + (" -F" if shortcut else " --flush-cache" )
7474 + (" -H" if shortcut else " --help" ))
75- check_stdout_msg (output , flush_cache_help )
75+ check_stdout_msg_all (output , flush_cache_help )
7676
7777 output = TestRun .executor .run ("casadm" + (" -C" if shortcut else " --io-class" )
7878 + (" -H" if shortcut else " --help" ))
79- check_stdout_msg (output , ioclass_help )
79+ check_stdout_msg_all (output , ioclass_help )
8080
8181 output = TestRun .executor .run ("casadm" + (" -V" if shortcut else " --version" )
8282 + (" -H" if shortcut else " --help" ))
83- check_stdout_msg (output , version_help )
83+ check_stdout_msg_all (output , version_help )
8484
8585 output = TestRun .executor .run ("casadm" + (" -H" if shortcut else " --help" )
8686 + (" -H" if shortcut else " --help" ))
87- check_stdout_msg (output , help_help )
87+ check_stdout_msg_all (output , help_help )
8888
8989 output = TestRun .executor .run ("casadm" + " --standby"
9090 + (" -H" if shortcut else " --help" ))
91- check_stdout_msg (output , standby_help )
91+ check_stdout_msg_all (output , standby_help )
9292
9393 output = TestRun .executor .run ("casadm" + " --zero-metadata"
9494 + (" -H" if shortcut else " --help" ))
95- check_stdout_msg (output , zero_metadata_help )
95+ check_stdout_msg_all (output , zero_metadata_help )
9696
9797 output = TestRun .executor .run ("casadm" + (" -Y" if shortcut else " --yell" )
9898 + (" -H" if shortcut else " --help" ))
99- check_stderr_msg (output , unrecognized_stderr )
100- check_stdout_msg (output , unrecognized_stdout )
99+ check_stderr_msg_all (output , unrecognized_stderr )
100+ check_stdout_msg_all (output , unrecognized_stdout )
101101
102102
103103@pytest .mark .parametrize ("output_format" , OutputFormat )
0 commit comments