selftests/damon/_damon_sysfs: check errors from nr_schemes file reads
authorSeongJae Park <sj@kernel.org>
Fri, 3 May 2024 18:03:10 +0000 (11:03 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 11 May 2024 22:41:33 +0000 (15:41 -0700)
commit732b8815c079199d29b0426d9372bb098c63cdc7
tree226128b4833e614807a3b9cda34ba4ce2333ad0d
parentb96a303b68dd3fe86f739fd34bd7cf194118ae89
selftests/damon/_damon_sysfs: check errors from nr_schemes file reads

DAMON context staging method in _damon_sysfs.py is not checking the
returned error from nr_schemes file read.  Check it.

Link: https://lkml.kernel.org/r/20240503180318.72798-3-sj@kernel.org
Fixes: f5f0e5a2bef9 ("selftests/damon/_damon_sysfs: implement kdamonds start function")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/_damon_sysfs.py