Skip to contentSkip to conversation

selftests/damon: Add _damon_sysfs.py to TEST_FILES

PATCH Applied Maximilian Heyne 2 participants 2 messages Nov 27, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/damon: Add _damon_sysfs.py to TEST_FILES

When running selftests I encountered the following error message with some damon tests:

# Traceback (most recent call last):
# File "[...]/damon/./damos_quota.py", line 7, in <module>
# import _damon_sysfs
# ModuleNotFoundError: No module named '_damon_sysfs'

Fix this by adding the _damon_sysfs.py file to TEST_FILES so that it will be available when running the respective damon selftests.

Fixes 306abb63a8ca ("selftests/damon: implement a python module for test-purpose DAMON sysfs controls")
---
 tools/testing/selftests/damon/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/damon/Makefile +1 -1
index 5b2a6a5dd1af7..812f656260fba 100644
@@ -6,7 +6,7 @@ TEST_GEN_FILES += debugfs_target_ids_read_before_terminate_race
 TEST_GEN_FILES += debugfs_target_ids_pid_leak
 TEST_GEN_FILES += access_memory access_memory_even
 
-TEST_FILES = _chk_dependency.sh _debugfs_common.sh
+TEST_FILES = _chk_dependency.sh _debugfs_common.sh _damon_sysfs.py
 
 # functionality tests
 TEST_PROGS = debugfs_attrs.sh debugfs_schemes.sh debugfs_target_ids.sh
Signature · 12 lines
2.40.1




Amazon Web Services Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · On Wed, 27 Nov 2024 12:08:53 +0000 Maximilian Heyne <[email protected]> wrote:

When running selftests I encountered the following error message with some damon tests:

# Traceback (most recent call last):
# File "[...]/damon/./damos_quota.py", line 7, in <module>
# import _damon_sysfs
# ModuleNotFoundError: No module named '_damon_sysfs'

Fix this by adding the _damon_sysfs.py file to TEST_FILES so that it will be available when running the respective damon selftests.

Thank you for finding and fixing this issue, Max!

Quoted 3 lines
Fixes 306abb63a8ca ("selftests/damon: implement a python module for test-purpose DAMON sysfs controls")

Thanks,
SJ

Quoted 19 lines
---
 tools/testing/selftests/damon/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/damon/Makefile +1 -1
index 5b2a6a5dd1af7..812f656260fba 100644
@@ -6,7 +6,7 @@ TEST_GEN_FILES += debugfs_target_ids_read_before_terminate_race
 TEST_GEN_FILES += debugfs_target_ids_pid_leak
 TEST_GEN_FILES += access_memory access_memory_even
 
-TEST_FILES = _chk_dependency.sh _debugfs_common.sh
+TEST_FILES = _chk_dependency.sh _debugfs_common.sh _damon_sysfs.py
 
 # functionality tests
 TEST_PROGS = debugfs_attrs.sh debugfs_schemes.sh debugfs_target_ids.sh
Signature · 1 line
2.40.1

[...]