[llvm] [LLVM] Use kwargs for ShTest constructor (PR #209676)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 20:51:22 PDT 2026


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/209676

Since extra_substitutions is not the first argument (although it will be soon).

Fixes https://lab.llvm.org/buildbot/#/builders/223/builds/7170.

This was broken by 3f46a5e91cdf2ade1d8ca350f4a57af8221407ea.

>From 90b944f8067aff007f50fdb7d70a97efc87d19b8 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 15 Jul 2026 03:49:55 +0000
Subject: [PATCH] [LLVM] Use kwargs for ShTest constructor

Since extra_substitutions is not the first argument (although it will be
soon).

Fixes https://lab.llvm.org/buildbot/#/builders/223/builds/7170.

This was broken by 3f46a5e91cdf2ade1d8ca350f4a57af8221407ea.
---
 llvm/test/lit.cfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 252665246546b..b349c81f53f03 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -26,7 +26,7 @@
     if config.enable_profcheck
     else []
 )
-config.test_format = lit.formats.ShTest(extra_substitutions)
+config.test_format = lit.formats.ShTest(extra_substitutions=extra_substitutions)
 
 # suffixes: A list of file extensions to treat as test files. This is overriden
 # by individual lit.local.cfg files in the test subdirectories.



More information about the llvm-commits mailing list