func readTests()

in tools/dockerversioning/scripts/cloudbuild/main.go [317:331]


func readTests(testsDir string) (tests []string) {
  if info, err := os.Stat(testsDir); err == nil && info.IsDir() {
    files, err := ioutil.ReadDir(testsDir)
    check(err)
    for _, f := range files {
      if f.IsDir() {
        continue
      }
      if strings.HasSuffix(f.Name(), testJsonSuffix) || strings.HasSuffix(f.Name(), testYamlSuffix) {
        tests = append(tests, workspacePrefix+fmt.Sprintf("%s/%s", testsDir, f.Name()))
      }
    }
  }
  return
}