]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/damon: skip test if DAMON is running
authorSeongJae Park <sj@kernel.org>
Fri, 10 Dec 2021 22:46:46 +0000 (14:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 11 Dec 2021 01:10:56 +0000 (17:10 -0800)
commitc5cf0f1922ab7e7249ba7606506a1d64b36b54c1
treea0c63531b31e1794847918e8b9091cb5bb6a66ae
parent73e1a2b4fbc455e02b55dad5cf07d17cffddcc68
selftests/damon: skip test if DAMON is running

Testing the DAMON debugfs files while DAMON is running makes no sense,
as any write to the debugfs files will fail.  This commit makes the test
be skipped in this case.

Link: https://lkml.kernel.org/r/20211201150440.1088-8-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/damon/debugfs_attrs.sh