selftests/damon/sysfs.py: generalize DAMOS schemes commit assertion
authorSeongJae Park <sj@kernel.org>
Sun, 20 Jul 2025 17:16:48 +0000 (10:16 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 26 Jul 2025 22:08:20 +0000 (15:08 -0700)
commit771d7754ab28597c0370a588887f50db229d1c0d
tree45e8277466614097a88b24a97c5d0bf1b03b9a9a
parent53f800581f79555e84aeabff81a90cf954803b83
selftests/damon/sysfs.py: generalize DAMOS schemes commit assertion

DAMOS schemes commitment assertion is hard-coded for a specific test case.
Split it out into a general version that can be reused for different test
cases.

Link: https://lkml.kernel.org/r/20250720171652.92309-19-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/sysfs.py