]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/damon: add _damon_sysfs.py to TEST_FILES
authorMaximilian Heyne <mheyne@amazon.de>
Wed, 27 Nov 2024 12:08:53 +0000 (12:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:27 +0000 (20:03 +0100)
commita32ea1d9ee710af89513ea5b9ea45959d8039a8b
tree525210238a557c4c301b67bfbadbb148f648139a
parenta63907c8c712414643b597debcd09d16b6827b23
selftests/damon: add _damon_sysfs.py to TEST_FILES

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: 306abb63a8ca ("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>
tools/testing/selftests/damon/Makefile