ocf/tests/functional
Slawomir Jankowski eeda1f3f0f Unify type of dirty_for in info structs
Reformat function that calculates how long cache/core is dirty
Update `dirty_for` types in functional tests

Values stored in info structs fields (both in cache and core structs)
are unsigned 64-bits ints but `dirty_for`s were unsigned 32-bits ints.

Use existing function to transform returned value to seconds.
Replace seconds stored in metadata with seconds.
Replacement was done if old value of replaced field was equal to zero.
Acquiring monotonic high precission timestamp is potentially
slow and it makes sense to compare the field's value
to zero before calling atomic function.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-02-25 14:51:53 +01:00
..
config Add global random seed config 2019-10-03 16:31:05 +02:00
pyocf Unify type of dirty_for in info structs 2021-02-25 14:51:53 +01:00
tests Functional test for overflown pinned ioclass 2021-02-16 07:07:01 -05:00
utils Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
__init__.py *.ini files added 2019-04-04 10:29:20 +02:00
.gitignore Added codecov badge to README, added coverage files to .gitignore 2020-01-09 10:54:59 +01:00
Makefile Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
pytest.ini Create config which excludes tests marked as "long" and security tests by default 2019-06-10 13:04:49 +02:00