Skip to content

Commit cf092e7

Browse files
committed
ci-stress: skip stressing if there are no tests
Release note: none Epic: DEVINF-1582
1 parent ba26ae7 commit cf092e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cmd/ci-stress/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ func mainImpl(baseRef string, bazelArgs []string) error {
152152
return err
153153
}
154154
pkgToTests := getPkgToTests(diff)
155+
if len(pkgToTests) == 0 {
156+
fmt.Println("could not find any eligible tests to stress, exiting")
157+
return nil
158+
}
155159
return runTests(ctx, pkgToTests, bazelArgs)
156160
}
157161

0 commit comments

Comments
 (0)