Expose smoke case listing

This commit is contained in:
2026-06-27 21:15:22 +02:00
parent 9b69cc8505
commit 7a60da23f0
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -940,6 +940,13 @@ continuity. Run:
python tools/prompt_smoke.py python tools/prompt_smoke.py
``` ```
To inspect or run a focused path while editing one route:
```bash
python tools/prompt_smoke.py --list
python tools/prompt_smoke.py --case krea_format_route_policy --case sdxl_format_route_policy
```
The script does not import ComfyUI. It builds representative metadata rows and The script does not import ComfyUI. It builds representative metadata rows and
pair metadata through the core Python APIs, then verifies: pair metadata through the core Python APIs, then verifies:
+9
View File
@@ -8913,6 +8913,11 @@ SMOKE_CASES: list[tuple[str, Callable[[], None]]] = [
def main(argv: list[str] | None = None) -> int: def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
"--list",
action="store_true",
help="List available smoke case names and exit.",
)
parser.add_argument( parser.add_argument(
"--case", "--case",
choices=[name for name, _func in SMOKE_CASES], choices=[name for name, _func in SMOKE_CASES],
@@ -8920,6 +8925,10 @@ def main(argv: list[str] | None = None) -> int:
help="Run only the named smoke case. Can be passed multiple times.", help="Run only the named smoke case. Can be passed multiple times.",
) )
args = parser.parse_args(argv) args = parser.parse_args(argv)
if args.list:
for name, _func in SMOKE_CASES:
print(name)
return 0
selected = set(args.case or []) selected = set(args.case or [])
report = SmokeReport() report = SmokeReport()
for name, func in SMOKE_CASES: for name, func in SMOKE_CASES: