Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2966245lqt; Tue, 23 Apr 2024 07:04:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgDYcPd64oiCNfxfVv+5G4sWCQqTDyN+V1g9aUxE7OzgSvAoaqLz30/ABBd0ISMzbg7nHAf31RV/B1ZPQY2NJfA2TJhkfG23IWKzLnjQ== X-Google-Smtp-Source: AGHT+IFHf1S5XwJ9z2XZIT0Tsge8zHfGM5oEwMt4i2SlzVSLGgCn5aoz6MgAWRYPyZ+ksAQyoYXt X-Received: by 2002:ac2:424b:0:b0:51a:bb5c:56e4 with SMTP id m11-20020ac2424b000000b0051abb5c56e4mr7883352lfl.14.1713881099018; Tue, 23 Apr 2024 07:04:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713881098; cv=pass; d=google.com; s=arc-20160816; b=bTZyPK8n06i0UmhJnnxwTxMQ9IET15gEVxNvzZhVCI58A6sdMRQiBsrCIlyJeWtAeE N3YSzNihyjNgYs/7/Nkm4KTKJublpxPtyyqcYZ2ovcWg+xEaJW/Viuwo1zFKtzdGIUxo Ixw00Z5Y47faJUAU9BxCqJlOq24HahNxODuvRAjev2/6yImI8ipWSt1oqvwjr3ipTubb lNN1CJEElB7EpvOcPfWhuzCQS9kivHV+zGCb2S1e8/Z7rCY2iAqlALhUml88YkBl0AxJ BxlZK1dhwEkWIdY7lr3a1vQRpj6y4Ti5UErhAPfyqjAn717mvX6DbRFhHMlpHnCdV2ra lpfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=G1vfYzX4gwzmLyyOqTxUIAMFQxuepF2rlLa0rYbWJDM=; fh=PzEo1TAbqGU++Rl2jk3C4jWei8O9/KMr68P7lC5V4B0=; b=ZQ3jHfxh2twJMGTyFBozOlF7kLYzYIia5rjFLlvH2eqv4A6/AlTvmTDJl+WpDfkZ2N mzCy702mf2XrgUSVUjGYcV8PaUdbr2bTwPm5W31qW3LRKl4qW7FZ94xfUlTzZv2LB8YA Uevo1SPZHGEb7YlT60QkMmlQ/Uxy/gwJgoyUyKsaESdtZe1l7gE+Q6N1s0nMxcbPg6Wc NZvAX3f1Fr/rr0bOp3hVgJadUv+PdLtsoCrBJ+A8+Y+o6MZA+Z0Yrw18J8eUyLkrDL6+ O2/tSxYsJrTtg2PMNu+9j1Pue3FxurI1EYJlQTBcRYmhlQqjbPFZyHZfYtpdzp8vMYyi JoGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Y28hfahN; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-155336-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ka19-20020a170907991300b00a55a624ce2fsi3651687ejc.927.2024.04.23.07.04.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 07:04:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155336-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Y28hfahN; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-155336-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id AA1D51F22D21 for ; Tue, 23 Apr 2024 14:04:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7619C13AA36; Tue, 23 Apr 2024 14:04:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Y28hfahN" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 4C965135414; Tue, 23 Apr 2024 14:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713881063; cv=none; b=CWDkGHfGtXcuNY0nX5ufI1oyKHO65ovAP9w0VKDoVdw43EmOI/fmhhvbZk5j0u1DiN8uwAnu06e2uVclAobZM8osdtF/RvQeLgM/YnzyhDB4cpbJ9XMh1sYu3jmZnpzRQOUrcUJa2RVAtD7h1A0bbHzlUql6FLZ/Jqz7cQ7KFUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713881063; c=relaxed/simple; bh=IswkZXwK+n2nisieR/XDGMs/iTPnx3zTGK0EaBj5w/0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H+pTlnEBQ2nmxC6ZeB5Uja1VVWcnOJEt7F1Y1mogv2KOedVrTwMIqMAiRPdjPINFlrM9wLnyWoticbVrCYIEyxa5WW9mNEyIHZWp3hqsv7NNiAyrRmp8QNBNqbmWK8aCrHzP+vfPvVzMIUl8X7kDrP37wrkHVYIy7DBo2XMpmMg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Y28hfahN; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713881054; bh=IswkZXwK+n2nisieR/XDGMs/iTPnx3zTGK0EaBj5w/0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Y28hfahNHk7gUuWmoLezv/VlMQPjejBP8mzZnZAgRXfCPeo1IwpvW98fgVkzdqzgb /wkIjkr0s7Zgw9FmxJJ7xvu3yCLoH3LwrG/tgerdlEZ6byrY04w6073nUaKP+5pL1g QoHBOMVEQYf4oKMOrsQie04YM4TLmHPaGy3/6BNIFwRFc+yk1nRTvmc1MRvzP5Wr4J Nva7WXCbmeu3petW/kFFlb64N14es8TNplebo4AGfoQLVDGi/1xbNj3g5JNOL+oFiE njifgz64pqUWj0K7AgTEng98lW+ASx+ghokzzChp6QgWscUwHQyk5L6yUd0UZN2hHt CSBQsxLMgM/8g== Received: from [192.168.1.205] (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 270B93782141; Tue, 23 Apr 2024 14:04:13 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Tue, 23 Apr 2024 10:03:41 -0400 Subject: [PATCH 2/3] kselftest: Move ksft helper module to common directory 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="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240423-dev-err-log-selftest-v1-2-690c1741d68b@collabora.com> References: <20240423-dev-err-log-selftest-v1-0-690c1741d68b@collabora.com> In-Reply-To: <20240423-dev-err-log-selftest-v1-0-690c1741d68b@collabora.com> To: Shuah Khan , Greg Kroah-Hartman Cc: kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= X-Mailer: b4 0.13.0 Move the ksft python module, which provides generic helpers for kselftests, to a common directory so it can be more easily shared between different tests. Signed-off-by: NĂ­colas F. R. A. Prado --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/devices/probe/Makefile | 2 +- tools/testing/selftests/devices/probe/test_discoverable_devices.py | 7 ++++++- tools/testing/selftests/{devices/probe => kselftest}/ksft.py | 0 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 55815470e94c..a07ef1f473b3 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -250,6 +250,7 @@ ifdef INSTALL_PATH install -m 744 kselftest/runner.sh $(INSTALL_PATH)/kselftest/ install -m 744 kselftest/prefix.pl $(INSTALL_PATH)/kselftest/ install -m 744 kselftest/ktap_helpers.sh $(INSTALL_PATH)/kselftest/ + install -m 744 kselftest/ksft.py $(INSTALL_PATH)/kselftest/ install -m 744 run_kselftest.sh $(INSTALL_PATH)/ rm -f $(TEST_LIST) @ret=1; \ diff --git a/tools/testing/selftests/devices/probe/Makefile b/tools/testing/selftests/devices/probe/Makefile index 7a6eaa031cfe..f630108c3fdf 100644 --- a/tools/testing/selftests/devices/probe/Makefile +++ b/tools/testing/selftests/devices/probe/Makefile @@ -1,4 +1,4 @@ TEST_PROGS := test_discoverable_devices.py -TEST_FILES := boards ksft.py +TEST_FILES := boards include ../../lib.mk diff --git a/tools/testing/selftests/devices/probe/test_discoverable_devices.py b/tools/testing/selftests/devices/probe/test_discoverable_devices.py index fbae8deb593d..0a2f4902dbbf 100755 --- a/tools/testing/selftests/devices/probe/test_discoverable_devices.py +++ b/tools/testing/selftests/devices/probe/test_discoverable_devices.py @@ -15,12 +15,17 @@ # import glob -import ksft import os import re import sys import yaml +# Allow ksft module to be imported from different directory +this_dir = os.path.dirname(os.path.realpath(__file__)) +sys.path.append(os.path.join(this_dir, "../../kselftest/")) + +import ksft + pci_controllers = [] usb_controllers = [] diff --git a/tools/testing/selftests/devices/probe/ksft.py b/tools/testing/selftests/kselftest/ksft.py similarity index 100% rename from tools/testing/selftests/devices/probe/ksft.py rename to tools/testing/selftests/kselftest/ksft.py -- 2.44.0