Skip to content

Commit 825e158

Browse files
committed
cmd/coordinator: fix sanity check
Change-Id: I2ba47f767f8213687b49e057a24d078c4512a5a2 Reviewed-on: https://go-review.googlesource.com/41373 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 6ce140a commit 825e158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/coordinator/coordinator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2581,7 +2581,7 @@ func (st *buildStatus) runTestsOnBuildlet(bc *buildlet.Client, tis []*testItem,
25812581
names := make([]string, len(tis))
25822582
for i, ti := range tis {
25832583
names[i] = ti.name
2584-
if i > 0 && !strings.HasPrefix(ti.name, "go_test:") {
2584+
if i > 0 && (!strings.HasPrefix(ti.name, "go_test:") || !strings.HasPrefix(names[0], "go_test:")) {
25852585
panic("only go_test:* tests may be merged")
25862586
}
25872587
}

0 commit comments

Comments
 (0)