Article View: linux.kernel.git
Article #1467[PATCH v2 0/2] Make our clar tests ignore the long-tests argument
From: Kaartic Sivaraam
Date: Mon, 26 Oct 2026 07:18
Date: Mon, 26 Oct 2026 07:18
85 lines
14220 bytes
14220 bytes
This is a small patch to fix a hiccup I hit while trying to run
our test using the following incantation:
$ meson test -v --test-args='-ilx'
...
Summary of Failures:
2/1063 unit-tests FAIL 0.16s (exit status 129 or signal 1 SIGHUP)
Ok: 1061
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 1
Timeout: 0
Full log written to /path/to/testlog.txt
On some exploration, we find the following which shows us what's wrong:
2/1063 unit-tests RUNNING
>>> ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=103 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /me/git-1/build/t/unit-tests -ilx
――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――
error: unknown switch `l'
usage: unit-test [<options>]
-i, --[no-]immediate immediately exit upon the first failed test
-r, --[no-]run suite[::test]
run only test suite or individual test <suite[::test]>
--[no-]exclude <suite>
exclude test suite <suite>
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
2/1063 unit-tests FAIL 0.01s (exit status 129 or signal 1 SIGHUP)
So, the '-l' switch that's passed to unit-tests is the problem.
On searching for how these were handled before, I stumbled across
9faf3963b6 (t: introduce compatibility options to clar-based tests,
2024-12-13) which handled this by adding such arguments as NOOP
arguments to t/unit-tests/unit-test.c. So, this patch does the same
to make unit-test ignore the '-l' passed to it.
The CI pipeline passes (for v1. v2 only had a commit message change):
- GitHub: https://github.com/sivaraam/git/actions/runs/39756087806
(a couple of MacOS ones didn't run owing to the lack of a runner)
- GitLab: https://gitlab.com/gitlab-org/git/-/pipelines/2975804623
---
Changes in v2:
- Fixed the s/prerequiiste/prerequisite/ typo in the commit message
- Link to v1: https://lore.kernel.org/r/20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com
Range-diff vs. v1:
1: 66759f627c = 1: 60bc3f0d83 unit-tests: reshuffle NOOP arguments to maintain order
2: 0bea06fe46 ! 2: c39dd72a2b unit-tests: ignore --long-tests
@@ Commit message
So, ignore -l / --long-tests in our clar tests.
This does not show up as a problem while running our CI as we enable
- the expensive prerequiiste via the GIT_TEST_LONG env variable.
+ the expensive prerequisite via the GIT_TEST_LONG env variable.
Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
---
Kaartic Sivaraam (2):
unit-tests: reshuffle NOOP arguments to maintain order
unit-tests: ignore --long-tests
t/unit-tests/unit-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
${range_diff}
---
base-commit: 47fdf2208c5b94c8cc01c106b8f7c85efb91c926
change-id: 20261021-ks-unit-tests-ignore-long-tests-9f32078e9100
${prerequisites}
Technical Details
Message-ID:
<20261026-ks-unit-tests-ignore-long-tests-v2-0-eaab5657c19c@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73242-linux-kernel-git=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73242-linux-kernel-git=dewy.ru
From: kaartic.sivaraam@gmail.com (Kaartic Sivaraam)
Newsgroups: linux.kernel.git
Subject: [PATCH v2 0/2] Make our clar tests ignore the long-tests argument
Date: Mon, 26 Oct 2026 12:48:20 +0530
Organization: Usenet Network
Message-ID: <20261026-ks-unit-tests-ignore-long-tests-v2-0-eaab5657c19c@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1247734"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:s6QDGHn9nBN6WtX7FefmyM7z8VU= sha256:bjxwQxKmKK3oVpR7nVOm4/U6lPMhWtkCDvt+9mcXhEQ=
sha1:p92pD8pi6dhRiGERtoUPn0WYb/s= sha256:m17Eh/t2UuSQLNaJ37aBTJfQAemgJNw4AdeGueN8LRA=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 0E757125B8E; Mon, 26 Oct 2026 10:18:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id WA-VHCZPvFL7;
Mon, 26 Oct 2026 10:18:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73242-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id C1465125B8B; Mon, 26 Oct 2026 10:18:45 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 99B9C335FD; Mon, 26 Oct 2026 07:18:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792999120;
b=JUvacOBsGkBokuuzasDru9pWzRouL0/hpeDHF3+On8Sof3dDo1A1AFt16wQg3sJZ3znL
G5bWxUS+rcdRN/D3v+SP53OZ7A/+0Bl9+xS6/uZHbm1PoW8Tr6ihm8XWPcLu84XNCYZT3
Zr4jPyGVcqv/uBWGpJ9NLytatvgdDhwaslnp52uJtAMlr6/u7rc98TeJA4ICTuS9+hyxY
fVtgs7yrbd6RxPFggtRhbVjOeLGxYldQ/p8862+CF+3hLS674aSx0qdjl3GnYM81SZuMM
1MiXGwZBe136NSCigQ+dYvAwCG5uE27NaIPR49a2s4NVzhm63NDYs40JclYfW1zCM+g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792999120;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:Subject:Date:Message-Id:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding:
X-B4-Tracking:To:Cc:X-Mailer;
bh=zzxEUX9fAOi9EMz4cef+7KNjk5pcIKcFAjdA+rffXD4=;
b=rCFf9p1ipyT/3i5s6gUrsjJ0YxchFtR8epi4KV6qEH9uQBpTUP7cCAulG8TZYr/hmVac
//7ZO1pQitUJKOypZ7MgFA3IYqddUJtPwFiyQkcMeyidf6QI5sZgM9W+UxUFmadntqyNS
jRktY6Ci0ROL4lmVx/CU5zQTDBAl6doQdH2veROwG7g4k+7zJYvPFuV/UpuNZei+V1Yis
tRtCRNawEBLeEw6rkcH39B7fUP40bfnoNm8gNstkn/nVYDSggSPMvkegfOpUL1dwBtX0I
Ii2ZkUXNhUeIqjL8pb2pvdk0z8Jn6Uj+DpM32iIx3MtQbATynnFDzLMjWkfm8LqKRlQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=ajWbUOpK;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 700ED606A321;
Mon, 26 Oct 2026 07:18:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=ajWbUOpK
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.179
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792999119;
b=3TbNvPA4rK+CwrWW5FGJKVUSpyAGuZD154oAx6ikmb8gMFoPztskPsNMaEtAsqg5ct0D
8S0rDlQdKRXRJPHqSyuPvAyaTTUbVzkiUgOzVa32TKrRnN2QvgkzljMxHoscDnbimq4Vo
R67L2t91VrNLBGQqr/1Yxilb+NGzqfkOROS7GrZDd1VM8Vb023+AkQJL0C5+mAUKEXyyr
L3ygKJzO9FVHCGZjDPbotuHQWk/gS7KuKDnBflnCR/mKNcDKWMb00tRxl0A2B86X3P6jk
tXljFX2pxl+qZBrUjjwpsTiMvJ8GVSRiF+Z/gLa8FIMYUQObSI9JOTQdWotaynH0i8A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792999119;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Subject:Date:
Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding:
X-B4-Tracking:To:Cc:X-Mailer;
bh=zzxEUX9fAOi9EMz4cef+7KNjk5pcIKcFAjdA+rffXD4=;
b=shwOYqmv9HOmxX6ZWhV/VnwFgyE02Ud/dC3lVutTY4NrLDyzqEmhZEsORpXyJgNuz+Os
csBju2lQee9Hv971Kpyx0Q5M3W6Kvqkc22L/XwkHdiiOHml1cNfNES2MvNmPgi4G9uLF0
OhYC2wFAihuczsphp61yZWV94W6uV3Tb+rkyVd8zZoAGLJls9A5MVrFqFpUi3S9kzhNZe
lN/aX/tfuUQtBKx/Js3AfUtVis1DUgzw+hPyOFl3VKK2Yoks39+PG7nyHEsLd1+nSSDpY
H45cIwMnXerMg+ePJrX7HxPlMCFxmtsS//G9AmwhZmzt77qBcMWz0IBg0n2qsdR+7tQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=ajWbUOpK;
arc=none smtp.remote-ip=74.125.82.179
X-Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30E73606A31A
for <git@vger.kernel.org>; Mon, 26 Oct 2026 07:18:39 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30E73606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-369f33df08eso2247693eec.0
for <git@vger.kernel.org>; Mon, 26 Oct 2026 00:18:39 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792999118; x=1793603918; darn=vger.kernel.org;
h=cc:to:content-transfer-encoding:content-type:mime-version
:message-id:date:subject:from:from:to:cc:subject:date:message-id
:reply-to:content-type;
bh=zzxEUX9fAOi9EMz4cef+7KNjk5pcIKcFAjdA+rffXD4=;
b=ajWbUOpKnoz86TuJaRUkx5PuRbMQEI2cq4Pd0bwQOy6Olt5eUVeZocL3pu7RrVz5b+
Cp5i/boS2nTLaBoYIw2dFWhN4Zk7KvQH9Qi8mtQ3FuoC1kDq2Up+kOoKf+gJ9B1ROtV0
MoXtErM9Yqo+0Or4htLOG77ovRih5V1ANNcRnlksZ9cQwTR+6xnm+NG7kGPdoNEPZT7J
eGdtVzM9UWvvTAmeHGnff72/GgvK3EcyQeIWGCl2nfC/hP0vxngQsujOqXN7cxxu7PGR
SEvnrlMXx3IsTDP3aWEIEuFaEQJpGnp/olV/qlmlQtvRWi5TWEj7whN8YhLxweBN5TJp
h+pg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792999118; x=1793603918;
h=cc:to:content-transfer-encoding:content-type:mime-version
:message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=zzxEUX9fAOi9EMz4cef+7KNjk5pcIKcFAjdA+rffXD4=;
b=w4pX8ioBxdqXpMZOml051mrcIp8oCT5EY/LpIg5yMZV47reaLkOWgDcULXqMzKuCOU
yKHPxb+NbZRiTGV7S8PhSUADkpWAw3bpGa1T6VvcKUv7Pb9mSr42YJg9jZ/aINPTeJDd
Atmf1WJmEIarFc9GKATKEnIWE205CrvTubHtabgQus9tDzdPeu6QpDkEiIU7ASlML8UG
R/7aouKnxQoqVI9dtvLuMp/LVxd2PAwoZgzcUY1ySbm6GN9yMNsRbpyDx7GQvtS9UC03
u1J338f+S5TEHAnhmRG1GkXQnarwn/RxYjZmeX+dsNjuXTcIPjXGnBwixcs1mki3hXEP
S59A==
X-Gm-Message-State: AFq9FYLnJy2V7x59C2FMhVSme3Jw0hv1pFH3iDvUgFEe1N+8T0+nwmUP
ozQiUAUA2I+MLNecJBm/IVeB9NX7ORcAk9qM9JUEkDFx+Dgj/wmbb9GoYz8dxg==
X-Gm-Gg: AYBFou0c1xkcRtB3yHhZ+DZKZn5IwIVYQJEqezLq50+W+IGZfNEXLFfA7HudTrxKOBS
TRP6N4cYbcMlzuT2gSnuVviAlU/EtYh83YkhiDpvPBdku2zT2Hu0PI8i67RN8HpTBwNhhWbaeto
zK02ToMUjRvV5jivQ0nLkRpN1detW2LBFM5tnfPF2bp9A2bZyqIcjzn3vZTOWEI99nNEqMfozY6
g60TQpGF+ztIvUfZFWUrDbRcdR5dNznEE1m7W60wA57mcK7EUg6jIkzELZJOfKtjnfuhNJnVz/r
kCyqRhVjAv6aN9VPcXMnZeIIHf+TTil3wikSVuAEm+g2sNO+ve37BMPFOY+hhPqDFZAVMsa7b12
A/Xwui1hNqFYi9QYQdm4pUnjJZD/2FmauGBNu6jq62h1qjqa1mPPtaJomGSDl/dUKw5quFtXM40
Ra+zdR4m4bC5k043XfzTUiSk5dAe1Cbh5+JcV4XPA4CL/COmFj7I/brWiAcsyW/nbWFVBM4zIqo
AEelT4+OvhNMK7vMY3LoOJk+sx21ax0jcoaIPgySoo7a5lr73Bzx+z3OdrvXPY81vVay/3iZ+2G
gSkcRF6uRw==
X-Received: by 2002:a05:7300:5724:b0:369:fbc5:ce29 with SMTP id 5a478bee46e88-369fbc5cfd4mr6458050eec.38.1792999118060;
Mon, 26 Oct 2026 00:18:38 -0700 (PDT)
X-Received: from [127.0.1.1] ([115.108.41.154])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-36a005c0188sm8871295eec.9.2026.10.26.00.18.36
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 26 Oct 2026 00:18:37 -0700 (PDT)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-B4-Tracking: v=1; b=H4sIALz+3moC/4WNQQ6CMBAAv2L27Jq2goIn/2E4ICxlI7SmW4mG8
Hcr0bPHmcPMDEKBSeC0mSHQxMLeJTDbDTR97Swht4nBKHPQymi8CT4cR4wkUZCt84Fw8M5+Tdn
tjToWVGqlIFXugTp+rodLlbhniT681uGkP/bXNn/bk0aFeZ7VeanaTBfXsx1rHnaNH6FaluUNN
bI6Lc4AAAA=
X-Cc: Patrick Steinhardt <ps@pks.im>
X-Mailer: b4 0.13.0