summaryrefslogtreecommitdiff
path: root/tools/testing/kunit/kunit_kernel.py
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2026-04-01 15:42:56 +0300
committerTakashi Iwai <tiwai@suse.de>2026-04-01 15:43:00 +0300
commit0542972950ef26670a5696e43c0ea2b7b6ac96d4 (patch)
tree9a38714da776c84a22efcdd8d82905bd7a9903a6 /tools/testing/kunit/kunit_kernel.py
parent579e7b820de5dd5124585413bb5e9c278d255436 (diff)
parenta0dafdbd1049a8ea661a1a471be1b840bd8aed13 (diff)
downloadlinux-0542972950ef26670a5696e43c0ea2b7b6ac96d4.tar.xz
Merge branch 'for-linus' into for-next
Pull 7.0 devel branch for further cleanups of ctxfi driver & co. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/testing/kunit/kunit_kernel.py')
-rw-r--r--tools/testing/kunit/kunit_kernel.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py
index 260d8d9aa1db..2998e1bc088b 100644
--- a/tools/testing/kunit/kunit_kernel.py
+++ b/tools/testing/kunit/kunit_kernel.py
@@ -346,8 +346,10 @@ class LinuxSourceTree:
return self.validate_config(build_dir)
def run_kernel(self, args: Optional[List[str]]=None, build_dir: str='', filter_glob: str='', filter: str='', filter_action: Optional[str]=None, timeout: Optional[int]=None) -> Iterator[str]:
- if not args:
- args = []
+ # Copy to avoid mutating the caller-supplied list. exec_tests() reuses
+ # the same args across repeated run_kernel() calls (e.g. --run_isolated),
+ # so appending to the original would accumulate stale flags on each call.
+ args = list(args) if args else []
if filter_glob:
args.append('kunit.filter_glob=' + filter_glob)
if filter: