Merge pull request #422 from mmichal10/fix-purge-wrapper

test api: fix purge command wrapper name
This commit is contained in:
Robert Baldyga 2020-05-27 16:26:13 +02:00 committed by GitHub
commit 2ee69dc919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,14 +80,14 @@ def try_add(core_device: Device, cache_id: int):
def purge_cache(cache_id: int):
output = TestRun.executor.run(script_purge_cache(str(cache_id)))
output = TestRun.executor.run(script_purge_cache_cmd(str(cache_id)))
if output.exit_code != 0:
raise CmdException("Purge cache failed.", output)
return output
def purge_core(cache_id: int, core_id: int):
output = TestRun.executor.run(script_purge_core(str(cache_id), str(core_id)))
output = TestRun.executor.run(script_purge_core_cmd(str(cache_id), str(core_id)))
if output.exit_code != 0:
raise CmdException("Purge core failed.", output)
return output