aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/repro/repro.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go
index dd2bf769d..3c0c8965f 100644
--- a/pkg/repro/repro.go
+++ b/pkg/repro/repro.go
@@ -260,6 +260,11 @@ func (ctx *context) extractProg(entries []*prog.LogEntry) (*Result, error) {
return res, nil
}
+ // Don't try bisecting if there's only one entry.
+ if len(entries) == 1 {
+ continue
+ }
+
// Execute all programs and bisect the log to find multiple guilty programs.
res, err = ctx.extractProgBisect(reverseEntries(entries), timeout)
if err != nil {