Merge pull request #337 from micrakow/seq

functional tests: fix setting seq_cutoff policy
This commit is contained in:
Michal Rakowski 2020-02-14 15:03:51 +01:00 committed by GitHub
commit dbecf22648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ def set_param_cutoff_cmd(cache_id: str, core_id: str = None, threshold: str = No
if threshold is not None:
add_params += (" -t " if shortcut else " --threshold ") + str(threshold)
if policy is not None:
add_params += (" -p " if shortcut else " --policy ") + policy.name
add_params += (" -p " if shortcut else " --policy ") + policy
return _set_param_cmd(namespace="seq-cutoff", cache_id=cache_id,
additional_params=add_params, shortcut=shortcut)