feat: add option to prune old test run directories, keeping a configurable maximum number.

This commit is contained in:
CJACK
2026-02-17 02:57:21 +08:00
parent d3ac698129
commit f8effc5e84
4 changed files with 71 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ func main() {
flag.IntVar(&timeoutSeconds, "timeout", int(opts.Timeout.Seconds()), "Per-request timeout in seconds")
flag.IntVar(&opts.Retries, "retries", opts.Retries, "Retry count for network/5xx requests")
flag.BoolVar(&opts.NoPreflight, "no-preflight", opts.NoPreflight, "Skip preflight checks")
flag.IntVar(&opts.MaxKeepRuns, "keep", opts.MaxKeepRuns, "Max test runs to keep (0 = keep all)")
flag.Parse()
if timeoutSeconds <= 0 {