Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jgwest committed Mar 6, 2024
1 parent 4249bb5 commit adc180c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/verify-rollouts-e2e-tests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func parseTestResultsFromFile(fileContents []string, testsExpectedToFailList []s

testSlashE2EText := "test/e2e"

fmt.Printf("line: [%s] %v %v %v \n", line, strings.HasPrefix(line, "==="), strings.Contains(line, "FAIL"), strings.Contains(line, testSlashE2EText))

var testName string

if strings.HasPrefix(line, "===") && strings.Contains(line, "FAIL") && strings.Contains(line, testSlashE2EText) {
Expand Down Expand Up @@ -180,7 +182,7 @@ func parseTestResultsFromFile(fileContents []string, testsExpectedToFailList []s
}

if !atLeastOneFailSeen || !atLeastOnePassSeen { // sanity test: BOTH a pass and fail should have occurred in the log.
return nil, fmt.Errorf("there may be something wrong with the parser: we expect to see both at least one pass, and at least one fail, in the parsed output")
return nil, fmt.Errorf("there may be something wrong with the parser: we expect to see both at least one pass, and at least one fail, in the parsed output: %v %v", atLeastOneFailSeen, atLeastOnePassSeen)
}

return testResults, nil
Expand Down

0 comments on commit adc180c

Please sign in to comment.