Skip to content

Commit

Permalink
kola: don't error if external tests directory doesn't exist
Browse files Browse the repository at this point in the history
Fixes: #1464
  • Loading branch information
dustymabe authored and openshift-merge-robot committed May 23, 2020
1 parent 3b691fb commit 6c0c185
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mantle/kola/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,12 @@ func RegisterExternalTestsWithPrefix(dir, prefix string) error {
testsdir := filepath.Join(dir, "tests/kola")
children, err := ioutil.ReadDir(testsdir)
if err != nil {
return errors.Wrapf(err, "reading %s", dir)
if os.IsNotExist(err) {
// The directory doesn't exist.. Skip registering tests
return nil
} else {
return errors.Wrapf(err, "reading %s", dir)
}
}

if err := registerTestDir(testsdir, prefix, children); err != nil {
Expand Down

0 comments on commit 6c0c185

Please sign in to comment.