tests: sequential cut off related methods fixup

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2019-11-06 12:41:47 +01:00
parent db8ff10cd5
commit 56b9ec1794
6 changed files with 52 additions and 18 deletions

View File

@@ -198,9 +198,10 @@ def get_seq_cut_off_parameters(cache_id: int, core_id: int):
seq_cut_off_params = SeqCutOffParameters()
for line in casadm_output:
if 'threshold' in line:
seq_cut_off_params.threshold = line.split(',')[1]
seq_cut_off_params.threshold = Size(int(line.split(',')[1]), Unit.KibiByte)
if 'policy' in line:
seq_cut_off_params.policy = SeqCutOffPolicy(line.split(',')[1])
seq_cut_off_params.policy = SeqCutOffPolicy.from_name(line.split(',')[1])
return seq_cut_off_params
def get_casadm_version():