selftests/damon/sysfs.py: generalize DAMON context commit assertion
authorSeongJae Park <sj@kernel.org>
Sun, 20 Jul 2025 17:16:50 +0000 (10:16 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 26 Jul 2025 22:08:21 +0000 (15:08 -0700)
commit16797a55aab118c5fa9236604aa2142f1121f136
treea9c0db0c25fbf1dead974979b976c342713ea3a5
parenta4027b5f24282b4aab5cee1b63b4267d27b6c686
selftests/damon/sysfs.py: generalize DAMON context commit assertion

DAMON context 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-21-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