mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-03 19:24:02 +08:00
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>
This commit is contained in:
parent
9f86d62429
commit
964e17016c
@ -44,6 +44,15 @@ test_content() {
|
||||
|
||||
source ./_chk_dependency.sh
|
||||
|
||||
ksft_skip=4
|
||||
|
||||
damon_onoff="$DBGFS/monitor_on"
|
||||
if [ $(cat "$damon_onoff") = "on" ]
|
||||
then
|
||||
echo "monitoring is on"
|
||||
exit $ksft_skip
|
||||
fi
|
||||
|
||||
# Test attrs file
|
||||
# ===============
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user