-
Notifications
You must be signed in to change notification settings - Fork 96
Kamilg/fix ioclass stat tests #1597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
b6682e1 to
8eb3192
Compare
8eb3192 to
3b1f3f1
Compare
3b1f3f1 to
633e11b
Compare
| from api.cas import casadm | ||
| from api.cas import ioclass_config | ||
| from api.cas.cache_config import CleaningPolicy, CacheMode, CacheLineSize | ||
| from api.cas.cache_config import ( | ||
| CleaningPolicy, | ||
| CacheMode, | ||
| CacheLineSize, | ||
| CacheModeTrait, | ||
| SeqCutOffPolicy, | ||
| ) | ||
| from api.cas.casadm import StatsFilter | ||
| from api.cas.cli_messages import ( | ||
| check_stderr_msg, | ||
| get_stats_ioclass_id_not_configured, | ||
| get_stats_ioclass_id_out_of_range | ||
| get_stats_ioclass_id_out_of_range, | ||
| ) | ||
| from api.cas.ioclass_config import IoClass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup imports:
from api.cas import casadm and from api.cas.casadm import StatsFilter
from api.cas import ioclass_config and from api.cas.ioclass_config import IoClass - furthermore later in code there is IoClass = ioclass_config.IoClass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While technically this is correct, what I had in mind was importing necessary things from each module (it's like 3 references for each)
633e11b to
07ce616
Compare
Signed-off-by: Kamil Gierszewski <[email protected]>
07ce616 to
f3d84ce
Compare
| stat_val.append(cache_stat.dirty.get_value()) | ||
| stat_name = cache_stat | ||
| else: | ||
| for stat_name in cache_stat: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stat_name is not an accurate variable name
| stat_val.append(core_stat.dirty.get_value()) | ||
| stat_name = core_stat | ||
| else: | ||
| for stat_name in core_stat: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
No description provided.