Skip to content

Commit

Permalink
ignore out own tests (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger authored Dec 16, 2024
1 parent 02a2f4e commit 3e842f0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions yaml/testcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ func collectTestCases(base string, duration time.Duration, evaluateIgnoreFile bo
return nil
}
if evaluateIgnoreFile {
if _, err := os.Stat(filepath.Join(p, ".oatsignore")); errors.Is(err, os.ErrNotExist) {
// ignore file does not exist
} else {
// ignore file exists
println("ignoring", p)
return nil
if d.IsDir() {
if _, err := os.Stat(filepath.Join(p, ".oatsignore")); errors.Is(err, os.ErrNotExist) {
// ignore file does not exist
} else {
// ignore file exists
println("ignoring", p)
return nil
}
}
println("adding", p)
}

println("adding", p)
testCase, err := readTestCase(base, p, duration)
if err != nil {
return err
Expand Down

0 comments on commit 3e842f0

Please sign in to comment.