* [PATCH v2] selftests/damon/sysfs.sh: fix typos in test messages
@ 2026-12-04 8:11 zhaozhengzhuo
2026-12-04 9:49 ` jm5905938
2026-12-04 15:35 ` SJ Park
0 siblings, 2 replies; 3+ messages in thread
From: zhaozhengzhuo @ 2026-12-04 8:11 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>
---
v2:
- Quote the full subject of the fixed commit in the Fixes tag, including
the trailing slash of "admin/reports/".
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* [PATCH v2] selftests/damon/sysfs.sh: fix typos in test messages
2026-12-04 8:11 [PATCH v2] selftests/damon/sysfs.sh: fix typos in test messages zhaozhengzhuo
@ 2026-12-04 9:49 ` jm5905938
2026-12-04 15:35 ` SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: jm5905938 @ 2026-12-04 9:49 UTC (permalink / raw)
To: zhaozhengzhuo; +Cc: sj, akpm, damon, linux-mm
On Fri, Dec 04, 2026 at 04:11:28PM +0800, zhaozhengzhuo wrote:
> Fix typos in the DAMON sysfs selftest failure messages:
>
> "invlid" -> "invalid"
> "uinvalid" -> "invalid"
Looks good to me. Thanks for the fix!
Reviewed-by: Aveline Noir <jm5905938@gmail.com>
On Fri, 4 Dec 2026 16:11:28 +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/")
> Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
> ---
> v2:
> - Quote the full subject of the fixed commit in the Fixes tag, including
> the trailing slash of "admin/reports/".
>
> 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 [flat|nested] 3+ messages in thread* Re: [PATCH v2] selftests/damon/sysfs.sh: fix typos in test messages
2026-12-04 8:11 [PATCH v2] selftests/damon/sysfs.sh: fix typos in test messages zhaozhengzhuo
2026-12-04 9:49 ` jm5905938
@ 2026-12-04 15:35 ` SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: SJ Park @ 2026-12-04 15:35 UTC (permalink / raw)
To: zhaozhengzhuo; +Cc: SJ Park, Andrew Morton, damon, linux-mm
Hello zhaozhengzhuo,
On Fri, 4 Dec 2026 16:11:28 +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/")
> Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
> ---
> v2:
> - Quote the full subject of the fixed commit in the Fixes tag, including
> the trailing slash of "admin/reports/".
Please don't post a new version before ensuring the discussions on previous
version is completed, from the next time. I already applied your v1 to
damon/next with the Fixes: line fix. I will hence ignore this version.
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-04 15:35 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:11 [PATCH v2] selftests/damon/sysfs.sh: fix typos in test messages zhaozhengzhuo
2026-12-04 9:49 ` jm5905938
2026-12-04 15:35 ` SJ Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox