[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <96ac2fd6-a885-4455-b0c9-91c514c8f3f5@linuxfoundation.org>
Date: Wed, 16 Oct 2024 09:08:33 -0600
From: Shuah Khan <skhan@...uxfoundation.org>
To: Benjamin Tissoires <bentiss@...nel.org>, Yun Lu <luyun@...inos.cn>
Cc: jikos@...nel.org, shuah@...nel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH v2] selftest: hid: add the missing tests directory
On 10/16/24 02:27, Benjamin Tissoires wrote:
> On Oct 15 2024, Yun Lu wrote:
>> Commit 160c826b4dd0 ("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.
>>
>> v2: add the error message
>>
>> Fixes: ffb85d5c9e80 ("selftests: hid: import hid-tools hid-core tests")
>> Cc: stable@...r.kernel.org
>> Signed-off-by: Yun Lu <luyun@...inos.cn>
>
> Acked-by: Benjamin Tissoires <bentiss@...nel.org>
>
> Shuah, I guess you'll want to take this one through your tree given that
> you already took the run-hid-tools-tests.sh one?
>
Yes. I will take this one. Thanks.
thanks,
-- Shuah
Powered by blists - more mailing lists