DAMON development mailing list
 help / color / mirror / Atom feed
* [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

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