tests: fix test_cli_help test

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
Kamil Gierszewski 2024-09-23 15:46:49 +02:00
parent d0d0fdb9c8
commit 64e4b8d9a7
No known key found for this signature in database

View File

@ -1,5 +1,6 @@
# #
# Copyright(c) 2020-2022 Intel Corporation # Copyright(c) 2020-2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #
@ -60,7 +61,7 @@ def test_cli_help(shortcut):
output = TestRun.executor.run("casadm" + (" -L" if shortcut else " --list-caches") output = TestRun.executor.run("casadm" + (" -L" if shortcut else " --list-caches")
+ (" -H" if shortcut else " --help")) + (" -H" if shortcut else " --help"))
check_stdout_msg(output, list_help) check_stdout_msg(output, list_caches_help)
output = TestRun.executor.run("casadm" + (" -P" if shortcut else " --stats") output = TestRun.executor.run("casadm" + (" -P" if shortcut else " --stats")
+ (" -H" if shortcut else " --help")) + (" -H" if shortcut else " --help"))