d4cf627f5c
BugLink: https://bugs.launchpad.net/bugs/2102118
commit 4a475c0a7eeb3368eca40fe7cb02d157eeddc77a upstream.
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.
Link: https://lkml.kernel.org/r/20241127-picks-visitor-7416685b-mheyne@amazon.de
Fixes: 306abb63a8 ("selftests/damon: implement a python module for test-purpose DAMON sysfs controls")
Signed-off-by: Maximilian Heyne <mheyne@amazon.de>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[koichiroden: adjusted context due to missing commit:
5965d5615b75 ("selftests/damon: classify tests for functionalities and regressions")]
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
18 lines
681 B
Makefile
18 lines
681 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for damon selftests
|
|
|
|
TEST_GEN_FILES += huge_count_read_write
|
|
TEST_GEN_FILES += access_memory
|
|
|
|
TEST_FILES = _chk_dependency.sh _debugfs_common.sh _damon_sysfs.py
|
|
TEST_PROGS = debugfs_attrs.sh debugfs_schemes.sh debugfs_target_ids.sh
|
|
TEST_PROGS += debugfs_empty_targets.sh debugfs_huge_count_read_write.sh
|
|
TEST_PROGS += debugfs_duplicate_context_creation.sh
|
|
TEST_PROGS += debugfs_rm_non_contexts.sh
|
|
TEST_PROGS += sysfs.sh sysfs_update_removed_scheme_dir.sh
|
|
TEST_PROGS += sysfs_update_schemes_tried_regions_hang.py
|
|
TEST_PROGS += sysfs_update_schemes_tried_regions_wss_estimation.py
|
|
TEST_PROGS += reclaim.sh lru_sort.sh
|
|
|
|
include ../lib.mk
|