From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE3371E573A; Mon, 21 Oct 2024 10:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729507112; cv=none; b=Xflr07lF4pdyTR8jFnFCrMjfPpLBEiifx3YgtZiYxsY9lIYT8R0O+jDXI/MPPCmieh3PCKoAjatJT+i8VwaNtj7I4lByVHXs8S4/1oz5mOannN87WrRuLmZP2jyYLfWvJI2A8cuwdxu5aIj+7U4d5Pq8vH7FZUzEh0DX0MjU9Dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729507112; c=relaxed/simple; bh=VraGhiL17usBYsVmvWeacWnQzUl1wmdYMlIgXnd3efo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Jbtfygi7RexQPDE1TzQST5jnB8zRlD6OOlKf+l0/3lqp+rO2/oerSUTRyV1kYTqSk8h2l5QWJtJjNZtzeReBfE48M+KI7qBp8dFWj1SutakH4dL7TEruGl7O4i6j4fzFxseri6fFJs7MRW8Rai4VsuM5U6k3z5W46IYvjsEOokw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o9a7P3Do; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="o9a7P3Do" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F0B9C4CEC3; Mon, 21 Oct 2024 10:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729507111; bh=VraGhiL17usBYsVmvWeacWnQzUl1wmdYMlIgXnd3efo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o9a7P3DoN2haBFUHf7OH8PUuLrvXayq9cLP5CtVuMOyGYNwdUMo2YfuYIzebeVq0Z pW/V1Smqao3aph3bTiWGkgR5uw/rMY6RUf8yr4g5yueqCD+VSOti0FRFzCI0sWu9WQ 2bEc5AJHVmxnM1EaqtS8hd9LXHVUinA6J7FGWLGo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yun Lu , Benjamin Tissoires , Shuah Khan Subject: [PATCH 6.6 062/124] selftest: hid: add the missing tests directory Date: Mon, 21 Oct 2024 12:24:26 +0200 Message-ID: <20241021102259.133602793@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241021102256.706334758@linuxfoundation.org> References: <20241021102256.706334758@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yun Lu commit fe05c40ca9c18cfdb003f639a30fc78a7ab49519 upstream. 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. Fixes: ffb85d5c9e80 ("selftests: hid: import hid-tools hid-core tests") Cc: stable@vger.kernel.org Signed-off-by: Yun Lu Acked-by: Benjamin Tissoires Signed-off-by: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/hid/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index 38ae31bb07b5..662209f5fabc 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -18,6 +18,7 @@ TEST_PROGS += hid-usb_crash.sh TEST_PROGS += hid-wacom.sh TEST_FILES := run-hid-tools-tests.sh +TEST_FILES += tests CXX ?= $(CROSS_COMPILE)g++ -- 2.47.0