aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/repro
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-11-21 20:16:30 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-11-22 11:45:38 +0100
commite06afd32595ba7831f6ae600fde04a4e66e37db7 (patch)
tree038c106e3bc2c2885e77da7b35b3388d774a621d /pkg/repro
parentb3a8d05cdd1c7ca3666eb02dc44e2c389a3db6b4 (diff)
pkg/repro: don't bisect single entry
Diffstat (limited to 'pkg/repro')
-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 {