Merge pull request #1265 from pdebski21/fix_test_core_pool

Fix core pool tests
This commit is contained in:
Robert Baldyga
2022-07-06 11:18:47 +02:00
committed by GitHub
2 changed files with 11 additions and 6 deletions

View File

@@ -137,9 +137,9 @@ def remove_detached(core_device: Device, shortcut: bool = False):
return output
def try_add(core_device: Device, cache_id: int, core_id: int = None):
def try_add(core_device: Device, cache_id: int, core_id: int):
output = TestRun.executor.run(script_try_add_cmd(str(cache_id), core_device.path,
str(core_id) if core_id is not None else None))
str(core_id)))
if output.exit_code != 0:
raise CmdException("Failed to execute try add script command.", output)
return Core(core_device.path, cache_id)