[PATCH 2/5] selftests/damon: fix memcg filter path handling
From: Kunwu Chan
Date: Sun May 31 2026 - 05:21:05 EST
From: Kunwu Chan <kunwu.chan@xxxxxxxxx>
A trailing comma in the memcg_path assignment makes
memcg_path a single-element tuple instead of a string.
As a result, an invalid value is written to sysfs and memcg
filter configuration fails.
Remove the comma.
Co-developed-by: Wang Lian <lianux.mm@xxxxxxxxx>
Signed-off-by: Wang Lian <lianux.mm@xxxxxxxxx>
Signed-off-by: Kunwu Chan <chentao@xxxxxxxxxx>
---
tools/testing/selftests/damon/_damon_sysfs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/damon/_damon_sysfs.py b/tools/testing/selftests/damon/_damon_sysfs.py
index 2f6f2699db25..006c92a76ebe 100644
--- a/tools/testing/selftests/damon/_damon_sysfs.py
+++ b/tools/testing/selftests/damon/_damon_sysfs.py
@@ -271,7 +271,7 @@ class DamosFilter:
self.type_ = type_
self.matching = matching
self.allow = allow
- self.memcg_path = memcg_path,
+ self.memcg_path = memcg_path
self.addr_start = addr_start
self.addr_end = addr_end
self.target_idx = target_idx
--
2.43.0