Fixes from testrun

This commit is contained in:
Ozzie Isaacs
2021-07-30 09:25:08 +02:00
parent e4b0434733
commit 0ec2bcd897
7 changed files with 2321 additions and 529 deletions

View File

@@ -39,7 +39,9 @@ def _get_command_version(path, pattern, argument=None):
if argument:
command.append(argument)
try:
return process_wait(command, pattern=pattern).string
match = process_wait(command, pattern=pattern)
if isinstance(match, re.Match):
return match.string
except Exception as ex:
log.warning("%s: %s", path, ex)
return _EXECUTION_ERROR