INNER CODE UNIT · Go
listModules
eksctl-io/eksctl · integration/main.go:81
func listModules() []string {
testsDir := path.Join("integration", "tests")
// TEST_SUITE_DIRS is a list of test suite directories to run
if testSuiteDirs, found := os.LookupEnv("TEST_SUITE_DIRS"); found {
dirs := strings.Split(testSuiteDirs, ",")
var moduleDirs []string
for _, dir := range dirs {
moduleDirs = append(moduleDirs, path.Join(testsDir, dir))
}
return moduleDirs
}
files, err := os.ReadDir(testsDir)
if err != nil {
log.Fatalf("failed to gather test suites: %v", err)
}
var moduleDirs []string