From nobody Sun Feb 8 22:22:11 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 681A1332EC7 for ; Fri, 16 Jan 2026 14:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768573276; cv=none; b=B3pckhbIxLJhoZXET85qYEGkMuX3MPBhbnidPJUxI9ZtEUKxhm7Llt4e3lwm5+cg+eQMwrGzed96h+tctUXh1l4AATmsRewBk8qQl0ZyjrXpUbLF4Iy34gTPeKKgx1Dp68wAZ0jBGVsupayZuw+HbvL2J19lq9JcnG+aZdFX7KQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768573276; c=relaxed/simple; bh=PEF0iq+9AC6WICfwCHd0f3JYtjyW/TLvhqlElcHB9i4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=b7c4osIkkR9Sgt3sVVYRSmjKf2RpEcBx6yW67z7nkrYjhazrR+CceATKERGSEvNwM2xobdsxR5GBWEYr/+HGDKFBkOf+kJwWz0/VB+BjVgSrnUYvnRt848kJpv1RxRaKdYwXPsDONz/4RYnyrcbtTD4TBlSIXGShZru3dHHp3kg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=RoLlknGm; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="RoLlknGm" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4801d24d91bso12050135e9.2 for ; Fri, 16 Jan 2026 06:21:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768573270; x=1769178070; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=R8uKmYgJ3Qq/PKlelXVpwg8n23aMvRRMH747RmsDWbI=; b=RoLlknGm8u7CEygybA739AirkfTssM8y9G/krpnDzzOx3G1ALzNAV/SplIZuzhkYbh F/awv77tXDDlSHHhvgfAuD1XUbTYDgDKsnOfNTGQ1OvPftzqqVFOdUNem44rBUWcesyP KQPAXt3Ge5sbE8p56dJhAmzIQfKIDrgjESKzS+jF2gxj9uwTTgoAzzB3cTQJY+bsHMPG GF9sgpCEjTV3drmhjS025xerVJuTm3s7q2MFunInhnN7Qo95cmyQWbwdw5vVq4CqQksk wbqKlNJjAnG7PQHtW7rHCp+t6eOd6FaDN5ZRG7/hjE4IE+wPhjG9D76Uhf8D/Q0E03k1 /i2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768573270; x=1769178070; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=R8uKmYgJ3Qq/PKlelXVpwg8n23aMvRRMH747RmsDWbI=; b=iNL49NfN4kGMZgDpMMmfLMov5AVY4V8L4GciKFo2iTFH1CzXdBYpdSs9li3FZiUJAF +NwKVgouI+Pilm9Xb3VxQghKM3r01eKFLz1agZsj0fnbPiXYwpwmlCIMoFLcP51um9om ukk5WOC5Vq+6Bv9nUyL2cQGUjKHmcpfhdaV6R+GonI/u0V0WwfI0dkCiyH4moIcoOuIS PikWT4aRQLwgUuT4jPzs6qmX+o4bmmQCaT1u0/xhOHHaohBZk+egwHgUbhNUvfAsfG31 3MfL9jkRinMHAUox4RIeEAyw2MBzZwVTPTqFpkTHotYPX1e1BAPbnAL04ti6efzY94dW RMWA== X-Forwarded-Encrypted: i=1; AJvYcCWtDzWPw5aMhil8m47sCgSWJsToEjmnToZWD/39E4nYtfICTlTjagTod/olHisxMh9am/0p35SAFg2d09E=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9JZmtum/xsczC4Y/UCiPfnvWgcGGxLbJ6kkUa4sSOul5OZe9O WZQKWUdSnE5M+fvu5zrTwmK/5BRJjRZ7YFANteNnTdWWqlbRBH/4F7AeMjgLhY8eHlmApEsKm2R h4K67acU= X-Gm-Gg: AY/fxX400L02tNlagU8/aaBZ2rSCliLrQpA5FwIjX8PsIbHOd38F+Y3JMQGsv9U6y3b fDhfq0wmp70cR0BATgq2PKumfNv6bqfKU2QRRk4yycM1IAsj2eUpsbtO5TPkNKaB3NAIbe6LW2A fM9IDpffmivaMRCwa+ud8piCvTV2ePYeXArillM3dQMaul7NrvN4Yd3AW5mwZKgfe1PoKb7OPqu +nWyyOAJ+qsW9WoC3vq86nwLKglK8zlkjCdTeSCRWPp+4LFbOSubGukmyez9u2R+AZVgVsvHHcl gxkO8Xtn7MtsXXPJm9O9PTxQXSJbtQ3NdPgKCmSAOROuyQaxTmtpfen1+ZCL9R6YSuYJD0ca39d B+c8fPsp83UdLohiP4QNtkOVHcaxtSvb6NcN01YVwC0Ujavv48OnUi/g9kSZNDIeCzekp7lFhTN 6jP6PZuYoa X-Received: by 2002:a05:600c:81c5:b0:477:76bf:e1fb with SMTP id 5b1f17b1804b1-4801e30df8bmr39820295e9.16.1768573270252; Fri, 16 Jan 2026 06:21:10 -0800 (PST) Received: from localhost ([189.99.238.227]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b6b34c11dasm2483868eec.2.2026.01.16.06.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jan 2026 06:21:09 -0800 (PST) From: =?utf-8?B?UmljYXJkbyBCLiBNYXJsacOocmU=?= Date: Fri, 16 Jan 2026 11:20:54 -0300 Subject: [RESEND PATCH] selftests/run_kselftest.sh: Add `--skip` argument option 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: quoted-printable Message-Id: <20260116-selftests-add_skip_opt-v1-1-ab54afaae81b@suse.com> To: shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openssh-sha256; t=1768573265; l=2432; i=rbm@suse.com; h=from:subject:message-id; bh=PEF0iq+9AC6WICfwCHd0f3JYtjyW/TLvhqlElcHB9i4=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgguRCc5X8/UX9M40lkMnr//aFGOhce x5ezt8MFNUFlqYAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QIzs0OMS58cRQ+96A+x31fiYKo0xzkxanoIwJkjh7oJjXmT+xxraNTlak8ved6j3iME86yJNNAe G9s0byFXxewE= X-Developer-Key: i=rbm@suse.com; a=openssh; fpr=SHA256:pzhe0fJpYLz+3cZ33FFPhIfaUElk9CXPFFXmalIH+1g Currently the only way of excluding certain tests from a collection is by passing all the other tests explicitly via `--test`. Therefore, if the user wants to skip a single test the resulting command line might be too big, depending on the collection. Add an option `--skip` that takes care of that. Signed-off-by: Ricardo B. Marli=C3=A8re --- Currently the only way of excluding certain tests from a collection is by passing all the other tests explicitly via `--test`. Therefore, if the user wants to skip a single test the resulting command line might be too big, depending on the collection. Add an option `--skip` that takes care of that. --- tools/testing/selftests/run_kselftest.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/testing/selftests/run_kselftest.sh b/tools/testing/selft= ests/run_kselftest.sh index d4be97498b32..84d45254675c 100755 --- a/tools/testing/selftests/run_kselftest.sh +++ b/tools/testing/selftests/run_kselftest.sh @@ -30,6 +30,7 @@ Usage: $0 [OPTIONS] -s | --summary Print summary with detailed log in output.log (conflict = with -p) -p | --per-test-log Print test log in /tmp with each test name (conflic= t with -s) -t | --test COLLECTION:TEST Run TEST from COLLECTION + -S | --skip COLLECTION:TEST Skip TEST from COLLECTION -c | --collection COLLECTION Run all tests from COLLECTION -l | --list List the available collection:test entries -d | --dry-run Don't actually run any tests @@ -43,6 +44,7 @@ EOF =20 COLLECTIONS=3D"" TESTS=3D"" +SKIP=3D"" dryrun=3D"" kselftest_override_timeout=3D"" ERROR_ON_FAIL=3Dtrue @@ -58,6 +60,9 @@ while true; do -t | --test) TESTS=3D"$TESTS $2" shift 2 ;; + -S | --skip) + SKIP=3D"$SKIP $2" + shift 2 ;; -c | --collection) COLLECTIONS=3D"$COLLECTIONS $2" shift 2 ;; @@ -109,6 +114,12 @@ if [ -n "$TESTS" ]; then done available=3D"$(echo "$valid" | sed -e 's/ /\n/g')" fi +# Remove tests to be skipped from available list +if [ -n "$SKIP" ]; then + for skipped in $SKIP ; do + available=3D"$(echo "$available" | grep -v "^${skipped}$")" + done +fi =20 kselftest_failures_file=3D"$(mktemp --tmpdir kselftest-failures-XXXXXX)" export kselftest_failures_file --- base-commit: 86063a2568b8f2eeb68da1411b320c0ff778f852 change-id: 20251125-selftests-add_skip_opt-0f3fd24d7afa Best regards, --=20 Ricardo B. Marli=C3=A8re