selftests/damon/sysfs.py: generalize DamosQuota commit assertion
authorSeongJae Park <sj@kernel.org>
Sun, 20 Jul 2025 17:16:43 +0000 (10:16 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 26 Jul 2025 22:08:19 +0000 (15:08 -0700)
commitf797e709f741d5a28e4f3ca2592e5cc1d7e21e3b
tree70fe084b9a462253361cdb1548bb748661bad31e
parentb50c48de6111bc70731ba375e1b45a65e63e287f
selftests/damon/sysfs.py: generalize DamosQuota commit assertion

DamosQuota 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-14-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