test api: add missing cli error messages

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2022-04-06 10:18:49 +02:00
parent cd51bfbab1
commit 61fa6da547

View File

@ -123,6 +123,14 @@ cache_dirty_shutdown = [
r"Alternatively, if you wish to clear metadata anyway, please use \'--force\' option\."
]
missing_param = [
r"Option \'.+\' is missing"
]
disallowed_param = [
r"Unrecognized option \S+"
]
def check_stderr_msg(output: Output, expected_messages):
return __check_string_msg(output.stderr, expected_messages)