Skip to content

Commit fe05c40

Browse files
Yun Lushuahkh
authored andcommitted
selftest: hid: add the missing tests directory
Commit 160c826 ("selftest: hid: add missing run-hid-tools-tests.sh") has added the run-hid-tools-tests.sh script for it to be installed, but I forgot to add the tests directory together. If running the test case without the tests directory, will results in the following error message: make -C tools/testing/selftests/ TARGETS=hid install \ INSTALL_PATH=$KSFT_INSTALL_PATH cd $KSFT_INSTALL_PATH ./run_kselftest.sh -t hid:hid-core.sh /usr/lib/python3.11/site-packages/_pytest/config/__init__.py:331: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown. Plugin: helpconfig, Hook: pytest_cmdline_parse UsageError: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...] __main__.py: error: unrecognized arguments: --udevd inifile: None rootdir: /root/linux/kselftest_install/hid In fact, the run-hid-tools-tests.sh script uses the scripts in the tests directory to run tests. The tests directory also needs to be added to be installed. Fixes: ffb85d5 ("selftests: hid: import hid-tools hid-core tests") Cc: [email protected] Signed-off-by: Yun Lu <[email protected]> Acked-by: Benjamin Tissoires <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 4ee5ca9 commit fe05c40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ TEST_PROGS += hid-usb_crash.sh
1818
TEST_PROGS += hid-wacom.sh
1919

2020
TEST_FILES := run-hid-tools-tests.sh
21+
TEST_FILES += tests
2122

2223
CXX ?= $(CROSS_COMPILE)g++
2324

0 commit comments

Comments
 (0)