Merge pull request #1369 from Kgierszx/fix_test_cli_help_and_version
test_fix:fix_test_cli_help_and_version
This commit is contained in:
commit
f554c9c5b1
@ -122,10 +122,9 @@ def test_cli_version(shortcut, output_format):
|
||||
|
||||
def names_in_output(output):
|
||||
return ("CAS Cache Kernel Module" in output
|
||||
and "CAS Disk Kernel Module" in output
|
||||
and "CAS CLI Utility" in output)
|
||||
|
||||
|
||||
def versions_in_output(output):
|
||||
version_pattern = re.compile(r"(\d){2}\.(\d){2}\.(\d)\.(\d){4}.(\S)")
|
||||
return len(version_pattern.findall(output)) == 3
|
||||
return len(version_pattern.findall(output)) == 2
|
||||
|
Loading…
Reference in New Issue
Block a user