(outputDir string, runID int64)
| 396 | } |
| 397 | |
| 398 | func resolveAuditOutputDir(outputDir string, runID int64) string { |
| 399 | runOutputDir := filepath.Join(outputDir, fmt.Sprintf("run-%d", runID)) |
| 400 | if absDir, err := filepath.Abs(runOutputDir); err == nil { |
| 401 | return absDir |
| 402 | } else { |
| 403 | auditLog.Printf("Failed to resolve absolute path for output directory %q: %v", runOutputDir, err) |
| 404 | } |
| 405 | return runOutputDir |
| 406 | } |
| 407 | |
| 408 | func ensureAuditNotCancelled(ctx context.Context) error { |
| 409 | select { |
no test coverage detected