Skip to content

Commit 053e80a

Browse files
committed
helpers: Fix looking for versioned rules
We used to look for versioned rules under ruleTestDir/manifest, so usually ocp4/e2e/4.10.yml or such. But that was incorrect, the versioned manifests live under the rule dir, not the directory where tests are executed from. Jira: CMP-1415
1 parent 2666d09 commit 053e80a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ func (ctx *e2econtext) verifyRule(
894894
// certain rules
895895
func (ctx *e2econtext) getTestDefinition(rulePath string) ([]byte, error) {
896896
versionedManifest := fmt.Sprintf("%s.yml", ctx.version)
897-
versionedRuleTestFilePath := path.Join(ruleTestDir, versionedManifest)
897+
versionedRuleTestFilePath := path.Join(rulePath, ruleTestDir, versionedManifest)
898898
vbuf, verr := ioutil.ReadFile(versionedRuleTestFilePath)
899899

900900
if verr == nil {

0 commit comments

Comments
 (0)