selftests/damon/sysfs.py: generalize monitoring attributes commit assertion
authorSeongJae Park <sj@kernel.org>
Sun, 20 Jul 2025 17:16:49 +0000 (10:16 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 26 Jul 2025 22:08:20 +0000 (15:08 -0700)
commita4027b5f24282b4aab5cee1b63b4267d27b6c686
tree7e478106669f1ba44a434d44a02b300f62db0b4e
parent771d7754ab28597c0370a588887f50db229d1c0d
selftests/damon/sysfs.py: generalize monitoring attributes commit assertion

DAMON monitoring attributes 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-20-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