* [PATCH] selftests/damon/sysfs.sh: fix typos in test messages
@ 2026-12-04 8:02 zhaozhengzhuo
2026-12-04 8:06 ` sashiko-bot
2026-12-04 15:31 ` SJ Park
0 siblings, 2 replies; 3+ messages in thread
From: zhaozhengzhuo @ 2026-12-04 8:02 UTC (permalink / raw)
To: SJ Park; +Cc: Andrew Morton, damon, linux-mm, zhaozhengzhuo
Fix typos in the DAMON sysfs selftest failure messages:
"invlid" -> "invalid"
"uinvalid" -> "invalid"
These strings are only printed when a test fails, but they are
user-visible, and the same function already uses "invalid input"
for the producer_state test.
No functional change.
Fixes: e6e80ed3a810 ("selftests/damon/sysfs.sh: add basic tests for admin/reports")
Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
---
tools/testing/selftests/damon/sysfs.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh
index 577953ee4e63..c8e88b6bef54 100755
--- a/tools/testing/selftests/damon/sysfs.sh
+++ b/tools/testing/selftests/damon/sysfs.sh
@@ -516,7 +516,7 @@ test_producer()
ensure_file "$producer_dir/report_type" "exist" "600"
ensure_write_succ "$producer_dir/report_type" "user_report" \
"valid input"
- ensure_write_fail "$producer_dir/report_type" "foo" "invlid input"
+ ensure_write_fail "$producer_dir/report_type" "foo" "invalid input"
ensure_file "$producer_dir/producer_state" "exist" "600"
ensure_write_succ "$producer_dir/producer_state" "on" "valid input"
@@ -526,13 +526,13 @@ test_producer()
ensure_file "$producer_dir/addr_start" "exist" "600"
ensure_write_succ "$producer_dir/addr_start" 123 "valid input"
- ensure_write_fail "$producer_dir/addr_start" foo "uinvalid input"
- ensure_write_fail "$producer_dir/addr_start" "1.23" "uinvalid input"
+ ensure_write_fail "$producer_dir/addr_start" foo "invalid input"
+ ensure_write_fail "$producer_dir/addr_start" "1.23" "invalid input"
ensure_file "$producer_dir/addr_end" "exist" "600"
ensure_write_succ "$producer_dir/addr_end" 123 "valid input"
- ensure_write_fail "$producer_dir/addr_end" foo "uinvalid input"
- ensure_write_fail "$producer_dir/addr_end" "1.23" "uinvalid input"
+ ensure_write_fail "$producer_dir/addr_end" foo "invalid input"
+ ensure_write_fail "$producer_dir/addr_end" "1.23" "invalid input"
}
test_producers()
--
2.50.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests/damon/sysfs.sh: fix typos in test messages
2026-12-04 8:02 [PATCH] selftests/damon/sysfs.sh: fix typos in test messages zhaozhengzhuo
@ 2026-12-04 8:06 ` sashiko-bot
2026-12-04 15:31 ` SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-12-04 8:06 UTC (permalink / raw)
To: zhaozhengzhuo, SJ Park; +Cc: Andrew Morton, damon, linux-mm
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/damon: Fixes trailer subject missing trailing slash
--
commit ef3314382acad2c1418085f0e9edd8f47833b3f1
Author: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
> selftests/damon/sysfs.sh: fix typos in test messages
>
> Fix typos in the DAMON sysfs selftest failure messages:
>
> "invlid" -> "invalid"
> "uinvalid" -> "invalid"
>
> These strings are only printed when a test fails, but they are
> user-visible, and the same function already uses "invalid input"
> for the producer_state test.
>
> No functional change.
>
> Fixes: e6e80ed3a810 ("selftests/damon/sysfs.sh: add basic tests for admin/reports")
> Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
[Severity: Low]
The Fixes tag subject is missing the trailing slash from commit
e6e80ed3a810 ("selftests/damon/sysfs.sh: add basic tests for
admin/reports/"), which causes checkpatch.pl to report a subject
mismatch. Should this be:
Fixes: e6e80ed3a810 ("selftests/damon/sysfs.sh: add basic tests for admin/reports/")
--
Sashiko AI review · https://sashiko.dev/#/patchset/CADE88ABCCD135D3+20261204080240.374858-1-zhaozhengzhuo@uniontech.com?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests/damon/sysfs.sh: fix typos in test messages
2026-12-04 8:02 [PATCH] selftests/damon/sysfs.sh: fix typos in test messages zhaozhengzhuo
2026-12-04 8:06 ` sashiko-bot
@ 2026-12-04 15:31 ` SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: SJ Park @ 2026-12-04 15:31 UTC (permalink / raw)
To: zhaozhengzhuo; +Cc: SJ Park, Andrew Morton, damon, linux-mm
On Fri, 4 Dec 2026 16:02:39 +0800 zhaozhengzhuo <zhaozhengzhuo@uniontech.com> wrote:
> Fix typos in the DAMON sysfs selftest failure messages:
>
> "invlid" -> "invalid"
> "uinvalid" -> "invalid"
>
> These strings are only printed when a test fails, but they are
> user-visible, and the same function already uses "invalid input"
> for the producer_state test.
>
> No functional change.
>
> Fixes: e6e80ed3a810 ("selftests/damon/sysfs.sh: add basic tests for admin/reports")
checkpatch warns here:
"""
WARNING: Please use correct Fixes: style 'Fixes: <12+ chars of sha1> ("<title line>")' - ie: 'Fixes: e6e80ed3a810 ("selftests/damon/sysfs.sh: add basic tests for admin/reports/")'
#18:
Fixes: e6e80ed3a810 ("selftests/damon/sysfs.sh: add basic tests for admin/reports")
"""
> Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
Other than the above,
Reviewed-by: SJ Park <sj@kernel.org>
I fixed the above Fixes: line and applied this patch to damon/next [1] tree. I
will repost it soon (~1 week) as an mm.git merge request. So, no action from
your side is needed for now.
[1] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-04 15:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 8:02 [PATCH] selftests/damon/sysfs.sh: fix typos in test messages zhaozhengzhuo
2026-12-04 8:06 ` sashiko-bot
2026-12-04 15:31 ` SJ Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox