Skip to content

Commit

Permalink
Skip testdata yaml files (#5240)
Browse files Browse the repository at this point in the history
Skip yaml file in rules testsdata
  • Loading branch information
eleftherias authored Jan 2, 2025
1 parent 58df36c commit 85ec911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/profiles/rule_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestExampleRulesAreValidatedCorrectly(t *testing.T) {
}

// skip test files
if strings.HasSuffix(path, ".test.yaml") || strings.HasSuffix(path, ".test.yml") {
if strings.HasSuffix(path, ".test.yaml") || strings.HasSuffix(path, ".test.yml") || strings.Contains(filepath.Dir(path), ".testdata") {
return nil
}

Expand Down

0 comments on commit 85ec911

Please sign in to comment.