Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp313282lqh; Mon, 6 May 2024 22:44:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOnLQ+EM+2WzQxBVNUFUVfz/6kvhQ5E1xjpmCDDD38FVfvwEvSoQLffzHwTWeCNwIjRpRDx7WPk/2XGpZbfGLhJFhSApjJIAlTSMtX4w== X-Google-Smtp-Source: AGHT+IFIiUD8woVZ4Ht1AUbARZ2zucPaz9meHgYGaF2v/QpVK1X7kacRhISAv4eJQGXUdWpqkbyv X-Received: by 2002:a17:902:ed04:b0:1e2:7d3b:353c with SMTP id b4-20020a170902ed0400b001e27d3b353cmr11064906pld.18.1715060665182; Mon, 06 May 2024 22:44:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715060665; cv=pass; d=google.com; s=arc-20160816; b=ayYv1krr1VGH3DdFv+DIMXi2Y6A6wgg1souzoMugXlj5CrzoF3oRfksjXgTuUrPPlD Au0QZEjDd6zKirAOgiSb16nqQLA+FMdOWwSWxxfZ5SaTMwrEiHbuwmsh2teZ6J+9pJjV IY2nUSZyNBIak4a/H/E3nzWELixoA+NaaWZuGcMWq1FZCOUdxlFxt2/lojj+/O4GAOjs SNQ9dWTr43IKCD6eLNjSG6XRkLyzN6W24muP8gjy/BtUohS+qmZI8eCsqhP+ZM6UwZ/f CmZ1kf/l4pX9iA4XFDE7TK0ytdNFFESJP3bD/Z9V6mX3ozjnNuiqMOkyT+qoVH71nM/c 37Nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=lkeboXyBVpNmNRvKnjyj6x8sgel+2B8ncRxdOm+B4m4=; fh=hEYE5P8/HXBysoIABX1ETB0xOPr6zGDIo4I/3LG5kaE=; b=hUmSNXNA5AQlpMDik+Wu7/Fq1o17XPBNPBXpW2TPuZ7bH7QvVJ+2jIn2lA25GVsNJ0 IK8ZiGXXwztozGr6FZomorTK2LYN9LFs/WM9GgaS0aAHY6fnNlyIio7SoLNdxUShQPWg R4aLfQyFkUOaQB5d2b2ZxSifwGi2CpDvhnKk8KyVdEFA+Sc90bh/9e1B334AhsApsbF1 oCNjGQapr+qnzYhpTG5g1EK5aJa/qbQDNKixAYK68H0XTa5ls6LyfmujeeyBso6sfbft szsTORsp0MCcIWQysb0Uc+3y8HUM5bWtFI4qnTcguSms/+gYC4fugK3PTCA01Vi+xtBM bAmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=QeQkweQ1; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ADWUYd67; arc=pass (i=1 spf=pass spfdomain=who-t.net dkim=pass dkdomain=who-t.net dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=who-t.net); spf=pass (google.com: domain of linux-kernel+bounces-170702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=who-t.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z2-20020a170903018200b001e788371561si10029243plg.524.2024.05.06.22.44.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 22:44:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=QeQkweQ1; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=ADWUYd67; arc=pass (i=1 spf=pass spfdomain=who-t.net dkim=pass dkdomain=who-t.net dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=who-t.net); spf=pass (google.com: domain of linux-kernel+bounces-170702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=who-t.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EAD84282AD6 for ; Tue, 7 May 2024 05:44:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0C496BFC5; Tue, 7 May 2024 05:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=who-t.net header.i=@who-t.net header.b="QeQkweQ1"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ADWUYd67" Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (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 C062E6BB20; Tue, 7 May 2024 05:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715060652; cv=none; b=fWC3WYOFmLU1L5STQ6H5CwQGlzxhT0j7byhSOxrEuCQdJT3wqDmIKPOwsqwb3RtfBOxQRuR73nLvwDc6NE3mbw05kZtFXVK6MwZs0uVrhXgF696QghqkYgzIh8ms/pHJkhuVpP5A2EUmQx/Oy2RNLX51XmoASsaCnglvxWp55Zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715060652; c=relaxed/simple; bh=xUUikjw73Z2SWVDsnoMEjL6NWbOu9X7Pm9owE8s4BBA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kIbiZ3EZo9N7gMLrkT9aaCsIhNDiXxTaqTxjrfQymNhxPN8pxksqwD7lwy+uHbIYTDLyGbM5Tz5KagcI6scZBDGcPuIcB8dgssuh1wqMdwDji9AnddBlatDuspAenFjzOgDjQ1QVOeKy0ZE/Wi6Fh3zzPrYhFCgUye/tL1i/c8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=who-t.net; spf=pass smtp.mailfrom=who-t.net; dkim=pass (2048-bit key) header.d=who-t.net header.i=@who-t.net header.b=QeQkweQ1; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ADWUYd67; arc=none smtp.client-ip=103.168.172.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=who-t.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=who-t.net Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id CA3DA114010D; Tue, 7 May 2024 01:44:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 07 May 2024 01:44:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1715060648; x=1715147048; bh=lkeboXyBVp NmNRvKnjyj6x8sgel+2B8ncRxdOm+B4m4=; b=QeQkweQ1+bCG+NzV9FSr3Vpu4c FR4kr6FpUMW/7D+ATsXbatQPO4TUNVgzI5xIsKhqsthkMm3PEyKqeuFj5QnVj7G2 YaCx7u00n3QYC9yZvbUrbGz8TQMw4VL96FI3LbAcQ9VGaLqddnlB9tIWgO1zJZfP YJ3Xy1iAoLApjkDcBnBGSNr62XV8Cf5AUIbb74D8WjbDFlPavSyCqDv0TEFNfb2i dmC/69b3+mvA8OLULvQCGBg1ycREVLf18qnD6sVq+iVYgyPPe6Y3qWZOO4M5Yop0 xDWRylj+tE8TPn72m+ACjbVm7VQW6eAjzye0st8Rd/dxm7Nz+uBXwJLxdtqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715060648; x=1715147048; bh=lkeboXyBVpNmNRvKnjyj6x8sgel+ 2B8ncRxdOm+B4m4=; b=ADWUYd67gU3t6wO84l5Ys2TG+vpv4c8/rxVA9/MiHsnO yGtp70MFyvgpofeyz3UTGPyGP+fPOLLUq4jav5ck951pVKmUDn2R1pmXhoiUySoT 4ncAFm7yQwB8kJz8AGyZLd8E9sCX9VF61BvZNB2JpbfClwlz+i/UX+rD+hCgomCQ 2FXfObMv+NqtGjH3ZR9AqamjC1pQDhK5xRzPaRe7IwMVcJtuser+1qAvuQT0NvGZ 3f7eLmKjwzzdRTOJL7aEOnHgOcdYSTonvdj5XPscDwlOu588sKDqzeG4YKV+gRj5 z8Nk5R3QQbTOP2Au+jiaPv8qhlpkoqfZsVdz+h0LLQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvjedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheprfgvthgv rhcujfhuthhtvghrvghruceophgvthgvrhdrhhhuthhtvghrvghrseifhhhoqdhtrdhnvg htqeenucggtffrrghtthgvrhhnpeekvdekgeehfeejgfdvudffhfevheejffevgfeigfek hfduieefudfgtedugfetgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehpvghtvghrrdhhuhhtthgvrhgvrhesfihhohdqthdrnhgvth X-ME-Proxy: Feedback-ID: i7ce144cd:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 May 2024 01:44:04 -0400 (EDT) Date: Tue, 7 May 2024 15:43:58 +1000 From: Peter Hutterer To: bentiss@kernel.org Cc: Jiri Kosina , Shuah Khan , linux-input@vger.kernel.org, Martin Sivak , Ping Cheng , Jason Gerecke , Aaron Armstrong Skomra , Joshua Dickens , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 19/18] selftests/hid: skip tests with HID-BPF if udev-hid-bpf is not installed Message-ID: <20240507054358.GA696790@quokka> References: <20240410-bpf_sources-v1-0-a8bf16033ef8@kernel.org> <20240506143612.148031-1-bentiss@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240506143612.148031-1-bentiss@kernel.org> On Mon, May 06, 2024 at 04:36:12PM +0200, bentiss@kernel.org wrote: > From: Benjamin Tissoires > > udev-hid-bpf is still not installed everywhere, and we should probably > not assume it is installed automatically. > > Signed-off-by: Benjamin Tissoires > --- > > I wanted to apply this series given that it wasn't reviewed in a month, apologies. Reviewed-by: Peter Hutterer (I have a few improvement suggestions for the hidtools code but it's better to do those there and then sync back). Cheers, Peter > but I thought that maybe I should not enforce ude-hid-bpf to be > installed everywhere. > > I'll probably push this series tomorrow so it makes the 6.10 cut. > > Cheers, > Benjamin > > tools/testing/selftests/hid/tests/base.py | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/tools/testing/selftests/hid/tests/base.py b/tools/testing/selftests/hid/tests/base.py > index 2d006c0f5fcd..3a465768e507 100644 > --- a/tools/testing/selftests/hid/tests/base.py > +++ b/tools/testing/selftests/hid/tests/base.py > @@ -8,6 +8,7 @@ > import libevdev > import os > import pytest > +import shutil > import subprocess > import time > > @@ -240,6 +241,10 @@ class BaseTestCase: > root_dir = (script_dir / "../../../../..").resolve() > bpf_dir = root_dir / "drivers/hid/bpf/progs" > > + udev_hid_bpf = shutil.which("udev-hid-bpf") > + if not udev_hid_bpf: > + pytest.skip("udev-hid-bpf not found in $PATH, skipping") > + > wait = False > for _, rdesc_fixup in self.hid_bpfs: > if rdesc_fixup: > -- > 2.44.0 >