fix: hint at --verbose when no bundled name shows

With no required firmware among the bundled entries the line read
'20 (20 more, --verbose lists them)'. It now reads '20 (--verbose lists
them)', and reading-reports.md quotes the run as it prints.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 15:13:55 +01:00
1 parent 1b4b31fb32
commit 7dcb427e27
3 files changed
+10 -2

No files matched your search

+7
View File
@@ -2,6 +2,8 @@
from __future__ import annotations
import tests # noqa: F401 offline, scratch under tmp/, the suite's own cache
import subprocess
import sys
import unittest
@@ -270,6 +272,11 @@ class TheBundledLineSaysWhatItLeavesOut(unittest.TestCase):
"Bundled with their emulator, not collected: 3 (a.frag, b.dll, fw.bin)",
verbose.getvalue(),
)
result["undeclared_files"] = result["undeclared_files"][1:]
with contextlib.redirect_stdout(io.StringIO()) as unnamed:
verify._print_undeclared_section(result, verbose=False)
self.assertIn("Bundled with their emulator, not collected: 2 (--verbose lists them)",
unnamed.getvalue())
class TheCheckLineSaysWhatItIs(unittest.TestCase):