UPSTREAM: mm/damon/selftests: support schemes quotas
This updates DAMON selftests to support updated schemes debugfs file format for the quotas. Link: https://lkml.kernel.org/r/20211019150731.16699-7-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Amit Shah <amit@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: David Hildenbrand <david@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: David Woodhouse <dwmw@amazon.com> Cc: Greg Thelen <gthelen@google.com> Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Leonard Foerster <foersleo@amazon.de> Cc: Marco Elver <elver@google.com> Cc: Markus Boehme <markubo@amazon.de> Cc: Shakeel Butt <shakeelb@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> (cherry picked from commit a2cb4dd0d40d3dcb7288a963d0f66271934417b6) Bug: 228223814 Signed-off-by: Hailong Tu <tuhailong@oppo.com> Change-Id: I6e8ea947a6f999daef8ee52cd882d17dda6ae098
This commit is contained in:

committed by
Hailong Tu

parent
8c491daa0f
commit
1990bcb746
@@ -63,10 +63,10 @@ echo "$orig_content" > "$file"
|
||||
file="$DBGFS/schemes"
|
||||
orig_content=$(cat "$file")
|
||||
|
||||
test_write_succ "$file" "1 2 3 4 5 6 4" \
|
||||
test_write_succ "$file" "1 2 3 4 5 6 4 0 0 0" \
|
||||
"$orig_content" "valid input"
|
||||
test_write_fail "$file" "1 2
|
||||
3 4 5 6 3" "$orig_content" "multi lines"
|
||||
3 4 5 6 3 0 0 0" "$orig_content" "multi lines"
|
||||
test_write_succ "$file" "" "$orig_content" "disabling"
|
||||
echo "$orig_content" > "$file"
|
||||
|
||||
|
Reference in New Issue
Block a user