Add test for devices' capabilities

Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
This commit is contained in:
Katarzyna Lapinska
2020-06-17 16:11:39 +02:00
parent ba5bbcf08e
commit b13403a9b9
4 changed files with 199 additions and 1 deletions

View File

@@ -63,6 +63,13 @@ load_and_force = [
r"Use of \'load\' and \'force\' simultaneously is forbidden\."
]
try_add_core_sector_size_mismatch = [
r"Error while adding core device to cache instance \d+",
r"Cache device logical sector size is greater than core device logical sector size\.",
r"Consider changing logical sector size on current cache device",
r"or try other device with the same logical sector size as core device\."
]
def check_stderr_msg(output: Output, expected_messages):
return __check_string_msg(output.stderr, expected_messages)